aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2022-12-21 14:32:49 -0500
committerTheodore Ts'o <tytso@mit.edu>2022-12-21 14:32:49 -0500
commit20a6703d6b92ebac8f85a22b4e6c6cdd961c5e9d (patch)
tree8d067c378320cb8f41e9f16067bfbe4b783d7c2c
parent4e5255acfb9ac4990817d42bdacbf11ca93c3d9a (diff)
downloadxfstests-bld-20a6703d6b92ebac8f85a22b4e6c6cdd961c5e9d.tar.gz
parse_cli: add the --skip-kernel-arch-probe option
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--run-fstests/util/parse_cli8
1 files changed, 7 insertions, 1 deletions
diff --git a/run-fstests/util/parse_cli b/run-fstests/util/parse_cli
index 1dd0ec60..137b2b17 100644
--- a/run-fstests/util/parse_cli
+++ b/run-fstests/util/parse_cli
@@ -230,6 +230,8 @@ validate_branch_name()
fi
}
+SKIP_KERNEL_ARCH_PROBE=
+
shortopts="ac:C:g:hI:m:n:No:O:r:vx:X:"
longopts=(
aio:
@@ -286,6 +288,7 @@ pts-size:
preemptible
primary_fstype:
repo:
+skip-kernel-arch-probe
stress-mem:
stress-opts:
testrunid:
@@ -749,6 +752,9 @@ while (( $# >= 1 )); do
--disable-serial)
GCE_SERIAL_PORT_ACCESS=FALSE
;;
+ --skip-kernel-arch-probe)
+ SKIP_KERNEL_ARCH_PROBE=YES
+ ;;
--)
shift
break
@@ -1091,7 +1097,7 @@ set_canonicalized_arch "$ARCH"
find_kernel_to_use
-if test "$OVERRIDE_KERNEL" != "none" ; then
+if test -z "$SKIP_KERNEL_ARCH_PROBE" -a "$OVERRIDE_KERNEL" != "none" ; then
get_kernel_file_info "$KERNEL"
fi
if test -n "$KERNEL_ARCH" ; then