Skip to content

test/system: Rewrite a test using the standard Bats helpers#1506

Merged
debarshiray merged 2 commits intocontainers:mainfrom
debarshiray:wip/rishi/test-system-sudo-id-rewrite
Jun 5, 2024
Merged

test/system: Rewrite a test using the standard Bats helpers#1506
debarshiray merged 2 commits intocontainers:mainfrom
debarshiray:wip/rishi/test-system-sudo-id-rewrite

Conversation

@debarshiray
Copy link
Copy Markdown
Member

No description provided.

@debarshiray debarshiray requested a review from martymichal as a code owner June 5, 2024 18:08
The extra debug logs from 'toolbox --verbose' are not needed for the
test case to work, and other tests don't gratuitously use --verbose
either.

Fallout from 55b5018

containers#1506
@debarshiray debarshiray force-pushed the wip/rishi/test-system-sudo-id-rewrite branch from 2270836 to 8fbd601 Compare June 5, 2024 18:09
The test was earlier rewritten in commit b0beb68 with custom
code in the hope that it would make it more reliable.  The test has
proven to be reliable in recent times, and the cause for its past
unreliability is unclear.  Therefore, it will be better to remove the
custom code in favour of the standard Bats helpers for the sake of
consistency and readability.

Until Bats 1.10.0, 'run --keep-empty-lines' had a bug where it counted
the trailing newline on the last line as a separate line [1].  However,
Bats 1.10.0 is only available in Fedora >= 39 and is absent from Fedora
38.

[1] Bats commit 6648e2143bffb933
    bats-core/bats-core@6648e2143bffb933
    bats-core/bats-core#708

containers#1506
@softwarefactory-project-zuul
Copy link
Copy Markdown

Build succeeded.
https://softwarefactory-project.io/zuul/t/local/buildset/8efa35967d064267ae62b021aabb5f62

✔️ unit-test SUCCESS in 7m 09s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 42s
✔️ unit-test-restricted SUCCESS in 5m 38s
✔️ system-test-fedora-rawhide SUCCESS in 37m 21s
✔️ system-test-fedora-40 SUCCESS in 39m 32s
✔️ system-test-fedora-39 SUCCESS in 39m 42s
✔️ system-test-fedora-38 SUCCESS in 34m 56s

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build succeeded.
https://softwarefactory-project.io/zuul/t/local/buildset/bbafbc63ff79415e81f73706fd432aea

✔️ unit-test SUCCESS in 6m 40s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 03s
✔️ unit-test-restricted SUCCESS in 5m 39s
✔️ system-test-fedora-rawhide SUCCESS in 39m 47s
✔️ system-test-fedora-40 SUCCESS in 38m 44s
✔️ system-test-fedora-39 SUCCESS in 38m 22s
✔️ system-test-fedora-38 SUCCESS in 38m 06s

@debarshiray debarshiray merged commit 05e700a into containers:main Jun 5, 2024
@debarshiray debarshiray deleted the wip/rishi/test-system-sudo-id-rewrite branch June 5, 2024 21:00
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.

1 participant