test/system: Silence SC2154#1378
Conversation
Bats' 'run' helper is not necessary to merely check if a command succeeded or not [1]. In this case, it's idiomatic to use the command as the condition for an 'if' branch. [1] https://bats-core.readthedocs.io/en/stable/writing-tests.html containers#1378
This removes any ambiguities and makes it clear what value is being returned. containers#1378
Otherwise https://www.shellcheck.net/ would complain: Line 343: if [ "$status" -ne 0 ]; then ^-----^ SC2154 (warning): status is referenced but not assigned. See: https://www.shellcheck.net/wiki/SC2154 containers#1378
ccaee74 to
0d43d22
Compare
|
Build failed. ✔️ unit-test SUCCESS in 8m 53s |
|
Build failed. ✔️ unit-test SUCCESS in 7m 57s |
|
Build failed. ✔️ unit-test SUCCESS in 8m 17s |
|
There are still some test failures on Fedora Rawhide. For example: I believe these are because of changes in various other components in Fedora 39, which we need to track down one by one and work out a fix. In the mean time, I am going to temporarily override these failures. |
Otherwise https://www.shellcheck.net/ would complain:
See: https://www.shellcheck.net/wiki/SC2154