summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/compress-7zip
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-09 20:51:14 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-09 20:51:14 -0400
commitce4a0ad557845bdde967998025c27ff17ee516b7 (patch)
tree3eb419357adb75a5224b56f50a498ec23d3eb904 /pts/test-resources/compress-7zip
parent5eeedd8b26e69d59729ef83f2fc834552a407fb5 (diff)
downloadphoronix-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-xpts/test-resources/compress-7zip/install.sh2
-rw-r--r--pts/test-resources/compress-7zip/parse-results.php3
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();