Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed ci tests for run0 #154

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Fixed ci tests for run0 #154

merged 1 commit into from
Nov 27, 2024

Conversation

jschpp
Copy link
Contributor

@jschpp jschpp commented Nov 25, 2024

It bugged me that the tests weren't working. So I spent a few hours today debugging this.

There were two problems with the test.

  1. polkit needs to be enabled explicitly https://wiki.nixos.org/wiki/Polkit#Enable_polkit
  2. su escalation needs to be the last option to be choosen for run0 to be selected as a valid escalation tool.

The problem with su being chosen was damn near invisible. The only error message I got was: machine # su: must be run from a terminal which didn't help matters since only the subtest (subtest: should succeed when run as non-root wheel user) failed.

There were two problems with the test.

1. polkit needs to be enabled explicitly https://wiki.nixos.org/wiki/Polkit#Enable_polkit
2. `su` escalation needs to be the last option to be choosen for `run0`
   to be selected as a valid escalation tool.
@ifd3f
Copy link
Owner

ifd3f commented Nov 27, 2024

ah, that would make a lot of sense. thanks!

@ifd3f ifd3f merged commit cd50799 into ifd3f:main Nov 27, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants