diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-09 20:51:14 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-09 20:51:14 -0400 |
commit | ce4a0ad557845bdde967998025c27ff17ee516b7 (patch) | |
tree | 3eb419357adb75a5224b56f50a498ec23d3eb904 /pts/test-resources/compress-7zip | |
parent | 5eeedd8b26e69d59729ef83f2fc834552a407fb5 (diff) | |
download | phoronix-test-suite-upstream-ce4a0ad557845bdde967998025c27ff17ee516b7.tar.gz phoronix-test-suite-upstream-ce4a0ad557845bdde967998025c27ff17ee516b7.tar.xz phoronix-test-suite-upstream-ce4a0ad557845bdde967998025c27ff17ee516b7.zip |
pts: More moving to $LOG_FILE usage
Diffstat (limited to 'pts/test-resources/compress-7zip')
-rwxr-xr-x | pts/test-resources/compress-7zip/install.sh | 2 | ||||
-rw-r--r-- | pts/test-resources/compress-7zip/parse-results.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/pts/test-resources/compress-7zip/install.sh b/pts/test-resources/compress-7zip/install.sh index 64a75ac..91ff61a 100755 --- a/pts/test-resources/compress-7zip/install.sh +++ b/pts/test-resources/compress-7zip/install.sh @@ -6,5 +6,5 @@ make -j $NUM_CPU_JOBS cd .. echo "#!/bin/sh -./p7zip_4.58/bin/7za b" > compress-7zip +./p7zip_4.58/bin/7za b > \$LOG_FILE 2>&1" > compress-7zip chmod +x compress-7zip diff --git a/pts/test-resources/compress-7zip/parse-results.php b/pts/test-resources/compress-7zip/parse-results.php index e8bad66..461ca3e 100644 --- a/pts/test-resources/compress-7zip/parse-results.php +++ b/pts/test-resources/compress-7zip/parse-results.php @@ -1,6 +1,7 @@ <?php -$BENCHMARK_RESULTS = substr($argv[1], strpos($argv[1], "Avr:")); +$log_file = file_get_contents(getenv("LOG_FILE")); +$BENCHMARK_RESULTS = substr($log_file, strpos($log_file, "Avr:")); $BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n")); $array = explode(" ", $BENCHMARK_RESULTS); $array2 = array(); |