Skip to content

Commit b64bbcf

Browse files
committed
rockcraft: use writableTmpDirAsHomeHook for checks
1 parent c5c77ad commit b64bbcf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pkgs/by-name/ro/rockcraft/package.nix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
testers,
88
rockcraft,
99
cacert,
10+
writableTmpDirAsHomeHook,
1011
}:
1112

1213
python3Packages.buildPythonApplication rec {
@@ -39,14 +40,10 @@ python3Packages.buildPythonApplication rec {
3940
pytest-mock
4041
pytest-subprocess
4142
pytestCheckHook
43+
writableTmpDirAsHomeHook
4244
]
4345
++ [ dpkg ];
4446

45-
preCheck = ''
46-
mkdir -p check-phase
47-
export HOME="$(pwd)/check-phase"
48-
'';
49-
5047
disabledTests = [
5148
"test_project_all_platforms_invalid"
5249
"test_run_init_flask"

0 commit comments

Comments
 (0)