diff options
author | Petr Vorel <pvorel@suse.cz> | 2021-01-20 10:56:47 +0100 |
---|---|---|
committer | Petr Vorel <pvorel@suse.cz> | 2021-01-20 11:05:19 +0100 |
commit | c698801a86c09f35ac9f48edf6be53712e8c90c7 (patch) | |
tree | 9818ffbac33975e7d991ee7a128c45981fd769bb | |
parent | b12b19a7ea81c57a963d63290fa60b976a40399a (diff) |
cpio: Fix -o compatibility detection
Broken on cpio from GNU, it requires using --help.
Fixes: 5910bdb65 ("cpio_tests.sh: Skip test on unsupported -o flag")
Reported-by: Zhu Feiyu <zhufy.jy@cn.fujitsu.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
-rwxr-xr-x | testcases/commands/cpio/cpio_tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testcases/commands/cpio/cpio_tests.sh b/testcases/commands/cpio/cpio_tests.sh index f2a9bd07d..a98b7eca7 100755 --- a/testcases/commands/cpio/cpio_tests.sh +++ b/testcases/commands/cpio/cpio_tests.sh @@ -13,7 +13,7 @@ TST_SETUP="setup" setup() { - if ! cpio 2>&1 | grep -i -q -- '-o\sCreate'; then + if ! cpio --help 2>&1 | grep -q -- '-o.*Create'; then tst_brk TCONF "-o flag not supported" fi |