Skip to content

Commit a098ed7

Browse files
committed
Fixing build script to properly parse and store options
1 parent e076f03 commit a098ed7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

BuildAndTest.sh.in

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ ORIGPATH=$PATH
55
DIRCMD=0
66

77
command=$0
8-
test_mode=$1
9-
shift
8+
if [ "$1" == "-E" ] || [ "$1" == "-N" ] || [ "$1" == "-C" ] || [ "$1" == "-I" ]; then
9+
test_mode=$1
10+
shift
11+
else
12+
test_mode="-E"
13+
fi
1014

1115
test_track=""
1216
individual_test=""
@@ -18,7 +22,7 @@ while [ "${1:-}" != "" ]; do
1822
;;
1923
"--track")
2024
shift
21-
test_track=--track $1
25+
test_track="--track $1"
2226
;;
2327
esac
2428
shift

0 commit comments

Comments
 (0)