containers / toolbox

Tool for interactive command line environments on Linux
https://containertoolbx.org/
Apache License 2.0
2.39k stars 208 forks source link

test/system: Silence SC1090 #1368

Closed debarshiray closed 9 months ago

debarshiray commented 9 months ago

Otherwise https://www.shellcheck.net/ would complain:

  Line 505:
  . "$os_release"
    ^-----------^ SC1090 (warning): ShellCheck can't follow non-constant
                  source. Use a directive to specify location.

See: https://www.shellcheck.net/wiki/SC1090

softwarefactory-project-zuul[bot] commented 9 months ago

Build failed. https://softwarefactory-project.io/zuul/t/local/buildset/940712811e564491ba600963b464bf62

:heavy_check_mark: unit-test SUCCESS in 9m 01s :heavy_check_mark: unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 15s :heavy_check_mark: unit-test-restricted SUCCESS in 7m 46s :x: system-test-fedora-rawhide FAILURE in 33m 01s :heavy_check_mark: system-test-fedora-38 SUCCESS in 25m 01s :heavy_check_mark: system-test-fedora-37 SUCCESS in 23m 09s

debarshiray commented 9 months ago

There are still some test failures on Fedora Rawhide. For example:

fedora-rawhide | not ok 3 help: Run command 'help' in 145ms
fedora-rawhide | # (from function `assert_line' in file test/system/libs/bats-assert/src/assert.bash, line 479,
fedora-rawhide | #  in test file test/system/002-help.bats, line 45)
fedora-rawhide | #   `assert_line --index 0 --partial "toolbox(1)"' failed
fedora-rawhide | # /usr/bin/man
fedora-rawhide | #
fedora-rawhide | # -- line does not contain substring --
fedora-rawhide | # index     : 0
fedora-rawhide | # substring : toolbox(1)
fedora-rawhide | # line      : troff:<standard input>:33: warning: cannot select font 'C'
fedora-rawhide | # --

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.