summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2021-02-27 20:55:57 -0800
committerPaul E. McKenney <paulmck@kernel.org>2021-03-22 08:29:21 -0700
commit114e4a4b4884c14ebd35874cbe3e1ca0d38efa5d (patch)
treedd5db9d15fd059e4c40c916c125dd53fae4ce29f /tools
parenta1ab2e89f36d678512a50cbebf6afc4201f41a31 (diff)
downloadlinux-114e4a4b4884c14ebd35874cbe3e1ca0d38efa5d.tar.gz
linux-114e4a4b4884c14ebd35874cbe3e1ca0d38efa5d.tar.bz2
linux-114e4a4b4884c14ebd35874cbe3e1ca0d38efa5d.zip
torture: Fix kvm.sh --datestamp regex check
Some versions of grep are happy to interpret a nonsensically placed "-" within a "[]" pattern as a dash, while others give an error message. This commit therefore places the "-" at the end of the expression where it was supposed to be in the first place. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index 0add16367899..6bf00a003d3d 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -120,7 +120,7 @@ do
shift
;;
--datestamp)
- checkarg --datestamp "(relative pathname)" "$#" "$2" '^[a-zA-Z0-9._-/]*$' '^--'
+ checkarg --datestamp "(relative pathname)" "$#" "$2" '^[a-zA-Z0-9._/-]*$' '^--'
ds=$2
shift
;;