We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e700cb8 commit e1a8fb3Copy full SHA for e1a8fb3
run.sh
@@ -45,11 +45,19 @@ for file in lib/*; do
45
CLASSPATH=$CLASSPATH:$PWD/$file:
46
done
47
48
-TIMEFORMAT="Run $REPS repetitions of the program with success in %R seconds"
+SUCCESS_REPS=0
49
50
+TIMEFORMAT="The script run for %3R seconds"
51
time {
52
for i in $(seq 1 $REPS); do
53
echo "Iteration $i of the program"
54
java -cp $CLASSPATH main.Assault $LOGGING
55
+ if [ $? -ne 0 ]; then
56
+ echo "Error running the program"
57
+ break
58
+ fi
59
+ SUCCESS_REPS=$((SUCCESS_REPS+1))
60
61
}
62
+
63
+echo "Run $SUCCESS_REPS repetitions of the program with success"
0 commit comments