summaryrefslogtreecommitdiff
path: root/testsuite/cpio.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2020-06-23 21:28:19 +0200
committerDenys Vlasenko2020-06-23 21:28:19 +0200
commit5fa5c4bde8b9ab75fa0ed37ee2fafca3fd46288a (patch)
treede564d978ea2bbf5484f71ea3f181cb4b0a7f541 /testsuite/cpio.tests
parentd206b1651ac4dc4db1d9bbd172a81da0568b42e8 (diff)
downloadbusybox-5fa5c4bde8b9ab75fa0ed37ee2fafca3fd46288a.zip
busybox-5fa5c4bde8b9ab75fa0ed37ee2fafca3fd46288a.tar.gz
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/cpio.tests')
-rwxr-xr-xtestsuite/cpio.tests6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests
index 88ec086..85e7465 100755
--- a/testsuite/cpio.tests
+++ b/testsuite/cpio.tests
@@ -129,7 +129,7 @@ SKIP=
optional FEATURE_CPIO_O
testing "cpio uses by default uid/gid" \
-"echo $0 | cpio -o -H newc | cpio -tv 2>&1 | tail -n +2 | awk ' { print \$2 } '; echo \$?" \
+"echo $0 | cpio -o -H newc | cpio -tv 2>&1 | head -n1 | awk ' { print \$2 } '; echo \$?" \
"\
$user/$group
0
@@ -138,7 +138,7 @@ SKIP=
optional FEATURE_CPIO_O
testing "cpio -R with create" \
-"echo $0 | cpio -o -H newc -R 1234:5678 | cpio -tv 2>&1 | tail -n +2 | awk ' { print \$2 } '; echo \$?" \
+"echo $0 | cpio -o -H newc -R 1234:5678 | cpio -tv 2>&1 | head -n1 | awk ' { print \$2 } '; echo \$?" \
"\
1234/5678
0
@@ -147,7 +147,7 @@ SKIP=
optional FEATURE_CPIO_O
testing "cpio -R with extract" \
-"echo $0 | cpio -o -H newc | cpio -tv -R 8765:4321 2>&1 | tail -n +2 | awk ' { print \$2 } '; echo \$?" \
+"echo $0 | cpio -o -H newc | cpio -tv -R 8765:4321 2>&1 | head -n1 | awk ' { print \$2 } '; echo \$?" \
"\
8765/4321
0