Skip to content

Commit 2ba4e88

Browse files
committed
ci: upload test artifacts
1 parent 083da7d commit 2ba4e88

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/avatar.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,15 @@ jobs:
8181
pip install --upgrade pip
8282
pip install rootcanal==1.3.0
8383
pip install .
84+
mkdir -p out
8485
- name: Rootcanal
85-
run: nohup python -m rootcanal > rootcanal.log &
86+
run: nohup python -m rootcanal > out/rootcanal.log &
8687
- name: Test
8788
run: |
8889
avatar --list | grep -Ev '^=' > test-names.txt
8990
timeout 5m avatar --test-beds bumble.bumbles --tests $(split test-names.txt -n l/${{ matrix.shard }})
90-
- name: Rootcanal Logs
91-
run: cat rootcanal.log
91+
- uses: actions/upload-artifact@v3
92+
if: success() || failure()
93+
with:
94+
name: Artifacts [${{ matrix.shard }}]
95+
path: out/

avatar/runner.py

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ def run(self) -> bool:
110110
# Enable Bumble snoop logs.
111111
os.environ.setdefault('BUMBLE_SNOOPER', f'btsnoop:file:{self.logs_dir}/{_BUMBLE_BTSNOOP_FMT}')
112112

113+
# Set Mobly log path.
114+
os.environ.setdefault('ENV_MOBLY_LOGPATH', str(self.logs_dir))
115+
113116
# Execute the suite
114117
ok = True
115118
for config in self.test_run_configs:

0 commit comments

Comments
 (0)