Skip to content

Commit 9db40ab

Browse files
committed
refactor start_test.sh
Signed-off-by: itamar <[email protected]>
1 parent 714aa3d commit 9db40ab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

start_test.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ then
2121
exit
2222
fi
2323

24-
jmx="$1"
25-
[ -n "$jmx" ] || read -p 'Enter path to the jmx file ' jmx
24+
jmx="$2"
25+
[ -n "$jmx" ] || read -p 'Enter path to the jmx file:' jmx
2626

2727
if [ ! -f "$jmx" ];
2828
then
@@ -33,6 +33,7 @@ fi
3333

3434
test_name="$(basename "$jmx")"
3535

36+
3637
#Get Master pod details
3738

3839
master_pod=`kubectl -n $namespace get po | grep jmeter-master | awk '{print $1}'`
@@ -41,4 +42,4 @@ kubectl -n $namespace cp "$jmx" "$master_pod:/$test_name"
4142

4243
## Echo Starting Jmeter load test
4344

44-
kubectl -n $namespace exec -ti $master_pod -- /bin/bash /load_test "$test_name"
45+
kubectl -n $namespace exec -ti $master_pod -- /bin/bash /load_test "$test_name"

0 commit comments

Comments
 (0)