Skip to content

Commit 839f622

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 839f622

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/test.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,12 @@ 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 bash -c ' \
35+
export PATH="$HOME/.cargo/bin:$PATH"; \
36+
export CARGO_HOME="$HOME/.cargo"; \
37+
make test \
38+
'

0 commit comments

Comments
 (0)