mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
tests/func*/characterisation-test-infra: Fix shellcheck
This commit is contained in:
parent
993ea14f52
commit
4183308ee2
2 changed files with 2 additions and 3 deletions
|
|
@ -108,7 +108,6 @@
|
||||||
# We haven't linted these files yet
|
# We haven't linted these files yet
|
||||||
''^scripts/install-multi-user\.sh$''
|
''^scripts/install-multi-user\.sh$''
|
||||||
''^scripts/install-systemd-multi-user\.sh$''
|
''^scripts/install-systemd-multi-user\.sh$''
|
||||||
''^tests/functional/characterisation-test-infra\.sh$''
|
|
||||||
''^tests/functional/common/vars-and-functions\.sh$''
|
''^tests/functional/common/vars-and-functions\.sh$''
|
||||||
''^tests/functional/completions\.sh$''
|
''^tests/functional/completions\.sh$''
|
||||||
''^tests/functional/compute-levels\.sh$''
|
''^tests/functional/compute-levels\.sh$''
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ echo Bye! > "$TEST_ROOT/expected"
|
||||||
diffAndAcceptInner test "$TEST_ROOT/got" "$TEST_ROOT/expected"
|
diffAndAcceptInner test "$TEST_ROOT/got" "$TEST_ROOT/expected"
|
||||||
(( "$badDiff" == 1 ))
|
(( "$badDiff" == 1 ))
|
||||||
)
|
)
|
||||||
[[ "$(echo Bye! )" == $(< "$TEST_ROOT/expected") ]]
|
[[ "Bye!" == $(< "$TEST_ROOT/expected") ]]
|
||||||
|
|
||||||
# _NIX_TEST_ACCEPT=1 matches non-empty
|
# _NIX_TEST_ACCEPT=1 matches non-empty
|
||||||
echo Hi! > "$TEST_ROOT/got"
|
echo Hi! > "$TEST_ROOT/got"
|
||||||
|
|
@ -57,7 +57,7 @@ echo Bye! > "$TEST_ROOT/expected"
|
||||||
_NIX_TEST_ACCEPT=1 diffAndAcceptInner test "$TEST_ROOT/got" "$TEST_ROOT/expected"
|
_NIX_TEST_ACCEPT=1 diffAndAcceptInner test "$TEST_ROOT/got" "$TEST_ROOT/expected"
|
||||||
(( "$badDiff" == 1 ))
|
(( "$badDiff" == 1 ))
|
||||||
)
|
)
|
||||||
[[ "$(echo Hi! )" == $(< "$TEST_ROOT/expected") ]]
|
[[ "Hi!" == $(< "$TEST_ROOT/expected") ]]
|
||||||
# second time succeeds
|
# second time succeeds
|
||||||
(
|
(
|
||||||
diffAndAcceptInner test "$TEST_ROOT/got" "$TEST_ROOT/expected"
|
diffAndAcceptInner test "$TEST_ROOT/got" "$TEST_ROOT/expected"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue