Summary
Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49
Recent Commits
>
--git a/CHANGE-LOG b/CHANGE-LOG
index 936befc..4cd78f4 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -1,5 +1,9 @@
PHORONIX TEST SUITE CHANGE-LOG
+Phoronix Test Suite (Git)
+
+- pts-core: Improvement for detecting errors from failed test installations
+
Phoronix Test Suite 4.4 Milestone 1
23 January 2013
diff --git a/pts-core/objects/client/pts_test_installer.php b/pts-core/objects/client/pts_test_installer.php
index bcaf6a6..df8efbb 100644
--- a/pts-core/objects/client/pts_test_installer.php
+++ b/pts-core/objects/client/pts_test_installer.php
@@ -145,7 +145,7 @@ class pts_test_installer
// If many tests are being installed, show the error messages reported in order to reduce scrolling...
if($install_request->install_error && isset($failed_installs[5]))
{
- echo ' [' . $install_request->install_error . ']' . PHP_EOL;
+ echo ' [' . $install_request->install_error . ']' . PHP_EOL;
}
}
}
@@ -717,6 +717,17 @@ class pts_test_installer
}
}
+
+ if($install_error == null && ($s = strrpos($install_log, PHP_EOL)) !== false && stripos($install_log, 'found', $s) !== false && stripos($install_log, 'no', ($s - 1)) !== false)
+ {
+ // See if the last line of the log is e.g. 'No OpenCL Environment Found', 'FFFFF Not Found', Etc
+ $last_line = trim(substr($install_log, $s));
+ if(isset($last_line[8]) && !isset($last_line[144]))
+ {
+ $install_error = $last_line;
+ }
+ }
+
copy($test_install_directory . 'install.log', $test_install_directory . 'install-failed.log');
}
<
Copyright © 2013 by Phoronix Media