summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/ppracer/parse-results.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-12-29 22:06:57 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-12-29 22:06:57 -0500
commit2025164e1ae8b791a2cdf2ec4b0bcd55336f142f (patch)
tree9af3e5db26f82989c2df18f800d1f24aff23e268 /pts/test-resources/ppracer/parse-results.php
parentb69fcfb7f641eb4e0f958cdc8c3d279c01f08980 (diff)
downloadphoronix-test-suite-upstream-2025164e1ae8b791a2cdf2ec4b0bcd55336f142f.tar.gz
phoronix-test-suite-upstream-2025164e1ae8b791a2cdf2ec4b0bcd55336f142f.tar.xz
phoronix-test-suite-upstream-2025164e1ae8b791a2cdf2ec4b0bcd55336f142f.zip
pts: Adjust more test profiles from using $argv to $LOG_FILE
Diffstat (limited to 'pts/test-resources/ppracer/parse-results.php')
-rw-r--r--pts/test-resources/ppracer/parse-results.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/pts/test-resources/ppracer/parse-results.php b/pts/test-resources/ppracer/parse-results.php
index 00241a7..739dbeb 100644
--- a/pts/test-resources/ppracer/parse-results.php
+++ b/pts/test-resources/ppracer/parse-results.php
@@ -1,5 +1,7 @@
<?php
-$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "Average FPS:") + 13);
+$log_file = trim(file_get_contents(getenv("LOG_FILE")));
+$BENCHMARK_RESULTS = substr($log_file, strrpos($log_file, "Average FPS:") + 13);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n")));
+
?>