-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
stig: use pytestCheckHook framework #85364
Conversation
|
||
preCheck = '' | ||
export LC_ALL=C | ||
export HOME=$(mktemp -d) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export HOME=$(mktemp -d) | |
export HOME=$TMPDIR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The manual suggests HOME=$(mkdir -d)
, but both can be found in nixpkgs.
However I introduced it before setting dontUseSetuptoolsCheck = true;
when I hit the following error:
Can't create directory /homeless-shelter/.local/share/stig/histories: Permission denied
But with dontUseSetuptoolsCheck = true;
it doesn't fail, so let's remove it I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides that, builds and runs fine for me.
Thanks @doronbehar. |
Motivation for this change
Current package for ˋstigˋ overrides ˋcheckPhaseˋ hence setting ˋdoInstallCheck = falseˋ is ignored.
Things done
Use the ˋpytestCheckHookˋ framework.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)