]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: fix misc/setarch run in a docker environment
authorAnatoly Pugachev <matorola@gmail.com>
Fri, 8 Apr 2022 14:53:58 +0000 (17:53 +0300)
committerAnatoly Pugachev <matorola@gmail.com>
Fri, 8 Apr 2022 14:53:58 +0000 (17:53 +0300)
Fixes: #601
tests/ts/misc/setarch

index 6c872bf70f106b22fc79241df67f6bcf1bbce20c..ab2f6c0099477d1d9db38e965020cb21a5367406 100755 (executable)
@@ -23,6 +23,7 @@ ts_check_test_command "$TS_CMD_SETARCH"
 ARCH=$(uname -m)
 
 ts_init_subtest options
+test -e /.dockerenv && ts_skip "unsupported in docker environment"
 ts_log_both "###### unknown arch"
 $TS_CMD_SETARCH qubit -v echo "success" >> $TS_OUTPUT 2>> $TS_ERRLOG
 echo "exit: $?" >>$TS_OUTPUT