Results 1 to 3 of 3

Thread: bug in the suite on Mandriva

  1. #1
    Join Date
    Jun 2008
    Posts
    4

    Default 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. #2
    Join Date
    Apr 2008
    Location
    York, UK
    Posts
    134

    Default

    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

  3. #3

    Default

    Fixed in git, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •