I'm wondering where I can submit a bug report for the test suite:
When I tried to install the benchmark super-pi I got this error:
Code:
metzgerh@stu:~/phoronix-test-suite$ ./phoronix-test-suite install super-pi
PHP Warning: mkdir(): No such file or directory in /home/2008/metzgerh/phoronix-test-suite/pts-core/functions/pts-functions_config.php on line 8
PHP Warning: file_put_contents(/home/metzgerh/.phoronix-test-suite/user-config.xml): failed to open stream: No such file or directory in /home/2008/metzgerh/phoronix-test-suite/pts-core/functions/pts-functions_config.php on line 27
PHP Warning: mkdir(): No such file or directory in /home/2008/metzgerh/phoronix-test-suite/pts-core/functions/pts-functions.php on line 219
PHP Warning: mkdir(): No such file or directory in /home/2008/metzgerh/phoronix-test-suite/pts-core/functions/pts-functions.php on line 221
PHP Warning: file_put_contents(/home/metzgerh/pts-benchmark-env/.processes/phoronix-test-suite.p): failed to open stream: No such file or directory in /home/2008/metzgerh/phoronix-test-suite/pts-core/functions/pts-functions.php on line223
PHP Warning: mkdir(): No such file or directory in /home/2008/metzgerh/phoronix-test-suite/pts-core/functions/pts-functions-install.php on line 59
PHP Warning: mkdir(): No such file or directory in /home/2008/metzgerh/phoronix-test-suite/pts-core/functions/pts-functions-install.php on line 63
PHP Warning: mkdir(): No such file or directory in /home/2008/metzgerh/phoronix-test-suite/pts-core/functions/pts-functions-install.php on line 67
=================================
Installing Benchmark: super-pi
=================================
Can't open display
Can't open display
install.sh: line 3: cd: /home/metzgerh/pts-benchmark-env/super-pi: No such file or directory
pi
super_pi
Readme.txt
PHP Warning: file_put_contents(/home/metzgerh/pts-benchmark-env/super-pi/pts-install): failed to open stream: No such file or directory in /home/2008/metzgerh/phoronix-test-suite/pts-core/functions/pts-functions-install.php on line 75
My home directory is /home/2008/metzgerh, but sometimes it assumes that it is /home/metzgerh. Looking though the code I came across this:
Code:
function pts_find_home($path)
{
if(strpos($path, '~') !== FALSE)
{
$whoami = trim(shell_exec("whoami"));
if($whoami == "root")
$home_path = "/root";
else
$home_path = "/home/$whoami";
$path = str_replace('~', $home_path, $path);
}
return $path;
}
As you can see here, that does not calculate it correctly.
As you already shell out, I changed the function to be:
Code:
function pts_find_home($path)
{
if(strpos($path, '~') !== FALSE)
{
$homedir = trim(shell_exec("getent passwd `whoami` | cut -d':' -f6"));
$path = str_replace('~', $homedir, $path);
}
return $path;
}
This appears to work on the few computers I tested it on, can anyone verify that it works for them as well?
Harry