Skip to content

Commit 62e9e6c

Browse files
committed
test: fix 'diff --unified' failing on Alpine Linux
The long '--unified' flag of the 'diff' command is GNU specific. Although it is recognized by the Alpine Linux version of 'diff', it is expecting a numeric argument N (number of lines). This difference caused test cases using 'diff' to fail on Alpine. This patch changes that to '-u' which implies N=3 by default on both GNU-based distros and Alpine Linux. Signed-off-by: Michal Rábek <[email protected]>
1 parent 9ef37be commit 62e9e6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libnvme/test/nbft/nbft-dump-diff.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ if [ $# -ne 2 ]; then
55
exit 255
66
fi
77

8-
"@NBFT_DUMP_PATH@" "$1" | diff --unified "$2" -
8+
"@NBFT_DUMP_PATH@" "$1" | diff -u "$2" -

0 commit comments

Comments
 (0)