PDA

View Full Version : bug in the suite on Mandriva


hajma
06-07-2008, 08:58 AM
Hi,
on Mandriva (2008.1 at least) the command urpmi is inside /usr/sbin, which is not in the default path of non-root user

So to run the tests as non-root you need to modify the command to include full path inside
share/phoronix-test-suite/pts/distro-scripts/install-mandrivalinux-packages.sh

uncle_fungus
06-07-2008, 09:26 AM
Hmm I did testing on Mandriva 2008.1 and it worked for me, however I do have /sbin and /usr/sbin in my PATH (I don't remember editing it, but that doesn't mean I haven't).

The solution in any case is actually simpler than writing the whole path to urpmi, rather just start su with "-" to indicate a login shell.

I should point out that this will not prevent you running phoronix-test-suite, it will only prevent you installing any test dependencies automatically.

diff --git a/pts/distro-scripts/install-mandrivalinux-packages.sh b/pts/distro-scripts/install-mandrivalinux-packages.sh
index 6d1b46a..5db7f52 100755
--- a/pts/distro-scripts/install-mandrivalinux-packages.sh
+++ b/pts/distro-scripts/install-mandrivalinux-packages.sh
@@ -2,5 +2,5 @@

# Mandriva package installation

-su root -c "urpmi --auto $@"
+su - root -c "urpmi --auto $@"
exit

Michael
06-07-2008, 04:17 PM
Fixed in git, thanks.