mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +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
|
|
@ -40,7 +40,7 @@ echo Bye! > "$TEST_ROOT/expected"
|
|||
diffAndAcceptInner test "$TEST_ROOT/got" "$TEST_ROOT/expected"
|
||||
(( "$badDiff" == 1 ))
|
||||
)
|
||||
[[ "$(echo Bye! )" == $(< "$TEST_ROOT/expected") ]]
|
||||
[[ "Bye!" == $(< "$TEST_ROOT/expected") ]]
|
||||
|
||||
# _NIX_TEST_ACCEPT=1 matches non-empty
|
||||
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"
|
||||
(( "$badDiff" == 1 ))
|
||||
)
|
||||
[[ "$(echo Hi! )" == $(< "$TEST_ROOT/expected") ]]
|
||||
[[ "Hi!" == $(< "$TEST_ROOT/expected") ]]
|
||||
# second time succeeds
|
||||
(
|
||||
diffAndAcceptInner test "$TEST_ROOT/got" "$TEST_ROOT/expected"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue