Announcement

Collapse
No announcement yet.

bug in the suite on Mandriva

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • bug in the suite on Mandriva

    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

  • #2
    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.

    Code:
    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

    Comment


    • #3
      Fixed in git, thanks.
      Michael Larabel
      https://www.michaellarabel.com/

      Comment

      Working...
      X