Skip to content

Commit fa378be

Browse files
author
MarcoFalke
committed
ci: Start with clean env
This should help to avoid non-determinism.
1 parent fa8c250 commit fa378be

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ci/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ requires `bash`, `docker`, and `python3` to be installed. To install all require
2020
sudo apt install bash docker.io python3
2121
```
2222

23-
To run the test stage with a specific configuration,
23+
It is recommended to run the ci system in a clean env. To run the test stage
24+
with a specific configuration,
2425

2526
```
26-
FILE_ENV="./ci/test/00_setup_env_arm.sh" ./ci/test_run_all.sh
27+
env -i HOME="$HOME" PATH="$PATH" USER="$USER" bash -c 'FILE_ENV="./ci/test/00_setup_env_arm.sh" ./ci/test_run_all.sh'
2728
```
2829

2930
### Configurations
@@ -45,7 +46,7 @@ It is also possible to force a specific configuration without modifying the
4546
file. For example,
4647

4748
```
48-
MAKEJOBS="-j1" FILE_ENV="./ci/test/00_setup_env_arm.sh" ./ci/test_run_all.sh
49+
env -i HOME="$HOME" PATH="$PATH" USER="$USER" bash -c 'MAKEJOBS="-j1" FILE_ENV="./ci/test/00_setup_env_arm.sh" ./ci/test_run_all.sh'
4950
```
5051

5152
The files starting with `0n` (`n` greater than 0) are the scripts that are run

0 commit comments

Comments
 (0)