Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tasks: Speed up test_pr() #605

Merged
merged 1 commit into from
Mar 18, 2024
Merged

tasks: Speed up test_pr() #605

merged 1 commit into from
Mar 18, 2024

Conversation

martinpitt
Copy link
Member

The [ -t 0 ] check in cockpit-tasks doesn't do anything any more, as the integration tests now run that script with podman exec, without an attached tty. This is also a bit awkward for the upcoming pytest rewrite, so replace it with an environment variable.

@@ -435,7 +435,7 @@ test_pr() {

# run the main loop in the background; we could do this with a single run-queue invocation,
# but we want to test the cockpit-tasks script
podman exec -i cockpituous-tasks cockpit-tasks &
podman exec -i --env=SLUMBER=5 cockpituous-tasks cockpit-tasks &
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...or 1 :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err, right 😅 Done

The `[ -t 0 ]` check in `cockpit-tasks` doesn't do anything any more, as
the integration tests now run that script with `podman exec`, without an
attached tty. This is also a bit awkward for the upcoming pytest
rewrite, so replace it with an environment variable.
Copy link
Member

@allisonkarlitskaya allisonkarlitskaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yip

@allisonkarlitskaya allisonkarlitskaya merged commit e5457a0 into main Mar 18, 2024
6 checks passed
@allisonkarlitskaya allisonkarlitskaya deleted the speedup branch March 18, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants