summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2022-12-08 20:25:58 +0200
committerToomas Soome <tsoome@me.com>2022-12-09 23:48:43 +0200
commit8b4261085e0d677be9a3253ff6b4c290e402576d (patch)
tree3cb2c72fb81a7db55e76c55f6b98415b19cb4e3e
parent9e3aeadeb229d472ee0ae8425dc913dfe7e81ea2 (diff)
downloadillumos-joyent-8b4261085e0d677be9a3253ff6b4c290e402576d.tar.gz
15244 zfs-tests: zfstest should accept multiple -c options
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Andy Fiddaman <illumos@fiddaman.net> Approved by: Dan McDonald <danmcd@mnx.io>
-rw-r--r--usr/src/test/zfs-tests/cmd/scripts/zfstest.ksh9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/src/test/zfs-tests/cmd/scripts/zfstest.ksh b/usr/src/test/zfs-tests/cmd/scripts/zfstest.ksh
index 93325a63c0..3d53ef5fae 100644
--- a/usr/src/test/zfs-tests/cmd/scripts/zfstest.ksh
+++ b/usr/src/test/zfs-tests/cmd/scripts/zfstest.ksh
@@ -140,8 +140,13 @@ while getopts ac:l:qT: c; do
auto_detect=true
;;
'c')
- runfiles=$OPTARG
- [[ -f $runfiles ]] || fail "Cannot read file: $runfiles"
+ runfile=$OPTARG
+ [[ -f $runfile ]] || fail "Cannot read file: $runfile"
+ if [[ -z $runfiles ]]; then
+ runfiles=$runfile
+ else
+ runfiles+=",$runfile"
+ fi
;;
'l')
logfile=$OPTARG