Skip to content

Commit

Permalink
fix aarch64 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Sep 12, 2024
1 parent 201faa0 commit 8f7c641
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/functional/flakes/show.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,17 @@ cat >flake.nix<<EOF
};
}
EOF
nix flake show > ./show-output.txt
# close stderr, to force consistent tty size across different environments
nix flake show > ./show-output.txt 2>/dev/null
cat show-output.txt >&2
test "$(awk -F '[:] ' '/aNoDescription/{print $NF}' ./show-output.txt)" = "package 'simple'"
test "$(awk -F '[:] ' '/bOneLineDescription/{print $NF}' ./show-output.txt)" = "package 'simple' - 'one line'"
test "$(awk -F '[:] ' '/cMultiLineDescription/{print $NF}' ./show-output.txt)" = "package 'simple' - 'line one'"
test "$(awk -F '[:] ' '/dLongDescription/{print $NF}' ./show-output.txt)" = "package 'simple' - '012345678901234567890123456..."
test "$(awk -F '[:] ' '/eEmptyDescription/{print $NF}' ./show-output.txt)" = "package 'simple'"
dLongDescription=$(awk -F '[:] ' '/dLongDescription/{print $NF}' ./show-output.txt)
if [[ $dLongDescription == "package 'simple' - '0123456789"* ]]; then
:
else
echo "description not as expected: $dLongDescription"
false
fi
test "$(awk -F '[:] ' '/eEmptyDescription/{print $NF}' ./show-output.txt)" = "package 'simple'"

0 comments on commit 8f7c641

Please sign in to comment.