test/system: Silence SC2154
Otherwise https://www.shellcheck.net/ would complain: Line 202: run echo "$name" ^---^ SC2154 (warning): name is referenced but not assigned. See: https://www.shellcheck.net/wiki/SC2154 Note that there's no need to use Bats' 'run' helper to merely check if the command succeeded or not, because 'set -e' is set for all tests [1]. [1] https://bats-core.readthedocs.io/en/stable/writing-tests.html https://github.com/containers/toolbox/pull/1334
This commit is contained in:
parent
7e4e78067b
commit
84ae385f33
1 changed files with 1 additions and 4 deletions
|
@ -199,10 +199,7 @@ teardown() {
|
|||
}
|
||||
|
||||
@test "run: Ensure that the default container is used" {
|
||||
run echo "$name"
|
||||
|
||||
assert_success
|
||||
assert_output ""
|
||||
test -z "${name+x}"
|
||||
|
||||
local default_container_name="$(get_system_id)-toolbox-$(get_system_version)"
|
||||
create_default_container
|
||||
|
|
Loading…
Reference in a new issue