spec: Set XDG_RUNTIME_DIR for tests
Browse files at this commit4741ab2e0465275d58c36db426b169c742d964cfParent: 08fb9431 changed file +1 -0
- niri.spec.rpkg +1 -0
niri.spec.rpkgmodified+1 -0
| @@ -127,6 +127,7 @@ install -Dm644 -t %{buildroot}%{_userunitdir} ./resources/niri-shutdown.target | |||
| 127 | 127 | ||
| 128 | %if %{with check} | 128 | %if %{with check} |
| 129 | %check | 129 | %check |
| 130 | +export XDG_RUNTIME_DIR="$(mktemp -d)" | ||
| 130 | %cargo_test -- --workspace --exclude niri-visual-tests | 131 | %cargo_test -- --workspace --exclude niri-visual-tests |
| 131 | %endif | 132 | %endif |
| 132 | 133 | ||