mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
tests/functional/nars.sh: Fail test if touch fails, comment
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
parent
f8268cbe16
commit
011fa9e085
@ -103,10 +103,11 @@ rm -rf "$TEST_ROOT/out"
|
|||||||
set +e
|
set +e
|
||||||
unicodeTestOut=$(nix-store --restore "$TEST_ROOT/out" < unnormalized.nar 2>&1)
|
unicodeTestOut=$(nix-store --restore "$TEST_ROOT/out" < unnormalized.nar 2>&1)
|
||||||
unicodeTestCode=$?
|
unicodeTestCode=$?
|
||||||
touch "$TEST_ROOT/unicode-â"
|
|
||||||
touch "$TEST_ROOT/unicode-â"
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
touch "$TEST_ROOT/unicode-â" # non-canonical version
|
||||||
|
touch "$TEST_ROOT/unicode-â"
|
||||||
|
|
||||||
touchFilesCount=$(find "$TEST_ROOT" -maxdepth 1 -name "unicode-*" -type f | wc -l)
|
touchFilesCount=$(find "$TEST_ROOT" -maxdepth 1 -name "unicode-*" -type f | wc -l)
|
||||||
|
|
||||||
if (( unicodeTestCode == 1 )); then
|
if (( unicodeTestCode == 1 )); then
|
||||||
|
Loading…
Reference in New Issue
Block a user