Skip to content

Commit

Permalink
tests/functional/nars.sh: Fail test if touch fails, comment
Browse files Browse the repository at this point in the history
Co-authored-by: Jörg Thalheim <[email protected]>
  • Loading branch information
roberth and Mic92 authored Oct 7, 2024
1 parent f8268cb commit 011fa9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/functional/nars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ rm -rf "$TEST_ROOT/out"
set +e
unicodeTestOut=$(nix-store --restore "$TEST_ROOT/out" < unnormalized.nar 2>&1)
unicodeTestCode=$?
touch "$TEST_ROOT/unicode-â"
touch "$TEST_ROOT/unicode-â"
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)

if (( unicodeTestCode == 1 )); then
Expand Down

0 comments on commit 011fa9e

Please sign in to comment.