Skip to content

Commit 6033177

Browse files
committed
Run the tests with sudo
As FeOS being a PID1 and needing root access to be able to function, run the tests also with sudo to have a similar environment. Signed-off-by: Guvenc Gulce <[email protected]>
1 parent 1bbfa63 commit 6033177

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ jobs:
2727
restore-keys: ${{ runner.os }}-cargo-
2828

2929
- name: Run Tests
30-
run: make test
30+
env:
31+
RUST_BACKTRACE: 1
32+
SUDO_ENV_VARS: "PATH=$PATH:$HOME/.cargo/bin CARGO_HOME=$HOME/.cargo"
33+
run: |
34+
sudo -E ${SUDO_ENV_VARS} make test

0 commit comments

Comments
 (0)