How to force run tests as non-root?

Sergey Fedorov vital.had at gmail.com
Sat Feb 24 16:32:02 UTC 2024


Ken, you are right about 10.6-ppc, of course, but in this particular case I
am having an issue with Sonoma.
Specifically, I cannot get Vidalia tests run with *sudo port test*. At the
same time, they run fine if I launch the test binary manually without sudo.

What fails:
1. sudo port test vidalia
2. sudo
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_Vidalia/Vidalia/work/vidalia-8240540188062a168a66b25ca61b852cc89140ad/src/tests/VidaliaTestSuite
3. sudo -u macports
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_Vidalia/Vidalia/work/vidalia-8240540188062a168a66b25ca61b852cc89140ad/src/tests/VidaliaTestSuite

What works fine:
1.
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_Vidalia/Vidalia/work/vidalia-8240540188062a168a66b25ca61b852cc89140ad/src/tests/VidaliaTestSuite
2. sudo -u svacchanda
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_Vidalia/Vidalia/work/vidalia-8240540188062a168a66b25ca61b852cc89140ad/src/tests/VidaliaTestSuite
(that is, from a current non-root user).

(Portfile in the master has no support for tests, as of now, so running it
gonna fail anyway.)

On Sat, Feb 24, 2024 at 11:24 PM Ken Cunningham <
ken.cunningham.webuse at gmail.com> wrote:

> Some of your macports installations are installed as the root user,
> instead of the macports user.
>
> This happened because there is no installer for 10.6-ppc to automatically
> create the macports user. You have an open ticket about this too, where I
> pointed to the commands to be run to generate the macports user.
>
> Sooner or later you will probably have to fix this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20240224/567dee12/attachment.htm>


More information about the macports-dev mailing list