Skip to content

Commit ac89631

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 ac89631

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/test.yaml

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

2929
- name: Run Tests
30-
run: make test
30+
env:
31+
RUST_BACKTRACE: 1
32+
run: |
33+
sudo -E bash -c ' \
34+
export PATH="$HOME/.cargo/bin:$PATH"; \
35+
export CARGO_HOME="$HOME/.cargo"; \
36+
make test \
37+
'

0 commit comments

Comments
 (0)