]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
detect a fully aborted benchmark
authorRudolf Polzer <divverent@alientrap.org>
Fri, 27 Jan 2012 15:48:52 +0000 (16:48 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 27 Jan 2012 15:48:52 +0000 (16:48 +0100)
misc/tools/the-big-benchmark/the-big-benchmark.bat
misc/tools/the-big-benchmark/the-big-benchmark.sh

index d69e5c1934c6de22255e55b81dbf1c78a2bd3b2d..be8323024b63ed73cca6a540fd33bd79b2fd6e67 100644 (file)
@@ -88,6 +88,13 @@ type data\benchmark.log >> data\the-big-benchmark.log
 \r
 del data\benchmark.log\r
 del data\engine.log\r
+\r
+if exist data\the-big-benchmark.log goto logisgood\r
+echo.\r
+echo The benchmark has been aborted. No log file has been written.\r
+goto end\r
+\r
+:logisgood\r
 echo.\r
 echo Please provide the the following info to the Xonotic developers:\r
 echo  - CPU speed\r
index 362ad8b73d3a6f118d90daaf3963fb8db71e1104..d7503fcb399d67e0888f9b834f620f89570410a5 100755 (executable)
@@ -69,12 +69,18 @@ for e in omg low med normal high ultra ultimate; do
        cat data/engine.log >> data/the-big-benchmark.log
        cat benchmark.log >> data/the-big-benchmark.log
 done
-rm -f data/benchmark.log
-rm -f data/engine.log
 if [ -f ./all ]; then
        ./all clean -r -f -u
 fi
 
+rm -f data/benchmark.log
+rm -f data/engine.log
+if ! [ -f data/the-big-benchmark.log ]; then
+       echo
+       echo "The benchmark has been aborted. No log file has been written."
+       exit
+fi
+
 echo
 echo "Please provide the the following info to the Xonotic developers:"
 echo " - CPU speed"