summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/vdrift
diff options
context:
space:
mode:
Diffstat (limited to 'pts/test-resources/vdrift')
-rwxr-xr-xpts/test-resources/vdrift/install.sh2
-rw-r--r--pts/test-resources/vdrift/parse-results.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/pts/test-resources/vdrift/install.sh b/pts/test-resources/vdrift/install.sh
index d7784d5..a4e6630 100755
--- a/pts/test-resources/vdrift/install.sh
+++ b/pts/test-resources/vdrift/install.sh
@@ -16,6 +16,6 @@ cd ..
echo "#!/bin/sh
cd vdrift-08-05-08/
-./build/vdrift -benchmark" > vdrift
+./build/vdrift -benchmark > \$LOG_FILE 2>&1" > vdrift
chmod +x vdrift
diff --git a/pts/test-resources/vdrift/parse-results.php b/pts/test-resources/vdrift/parse-results.php
index 4fe0999..1f6bcd1 100644
--- a/pts/test-resources/vdrift/parse-results.php
+++ b/pts/test-resources/vdrift/parse-results.php
@@ -1,6 +1,7 @@
<?php
-$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "FPS:") + 4);
+$log_file = file_get_contents(getenv("LOG_FILE"));
+$BENCHMARK_RESULTS = substr($log_file, strrpos($log_file, "FPS:") + 4);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n")));
?>