Commit Diff


commit - 34d80a0ff3357761ddb975a1a96d3ee795218e41
commit + 75b17c2a7d14fc0476cba0375a5a031cf0c13a00
blob - 09788e37096319afffa06cca64d7a215c112d476
blob + d01cd1bae40ee00fa47c8d4205b83088b4f36a73
--- regress/cmdline/common.sh
+++ regress/cmdline/common.sh
@@ -231,7 +231,7 @@ test_parseargs()
 		case $flag in
 		q)	export GOT_TEST_QUIET=1
 			;;
-		r)	export GOT_TEST_ROOT=$OPTARG
+		r)	export GOT_TEST_ROOT=${OPTARG%/}
 			;;
 		?)	echo "Supported options:"
 			echo "  -q: quiet mode"