OSDN Git Service

Make bzcat tests runnable on a toybox-only system.
authorElliott Hughes <enh@google.com>
Sun, 2 Apr 2017 19:27:38 +0000 (12:27 -0700)
committerRob Landley <rob@landley.net>
Fri, 7 Apr 2017 16:37:04 +0000 (11:37 -0500)
tests/bzcat.test

index 0975f3d..45a2fd8 100755 (executable)
@@ -4,7 +4,7 @@
 
 #testing "name" "command" "result" "infile" "stdin"
 testing "2 known files" \
- 'bzcat "$FILES/blkid/"{minix,ntfs}.bz2 | sha1sum | '"awk '{print \$1}'" \
+ 'bzcat "$FILES/blkid/"{minix,ntfs}.bz2 | sha1sum | cut -d " " -f 1' \
  'c0b7469c9660d6056a988ef8a7fe73925efc9266\n' '' ''
 
 testing "overflow" \