diff --git a/.github/workflows/avatar.yml b/.github/workflows/avatar.yml index 21945ef..319da6c 100644 --- a/.github/workflows/avatar.yml +++ b/.github/workflows/avatar.yml @@ -81,11 +81,15 @@ jobs: pip install --upgrade pip pip install rootcanal==1.3.0 pip install . + mkdir -p out - name: Rootcanal - run: nohup python -m rootcanal > rootcanal.log & + run: nohup python -m rootcanal > out/rootcanal.log & - name: Test run: | avatar --list | grep -Ev '^=' > test-names.txt timeout 5m avatar --test-beds bumble.bumbles --tests $(split test-names.txt -n l/${{ matrix.shard }}) - - name: Rootcanal Logs - run: cat rootcanal.log + - uses: actions/upload-artifact@v3 + if: success() || failure() + with: + name: Artifacts [${{ matrix.shard }}] + path: out/ diff --git a/avatar/runner.py b/avatar/runner.py index 8cc4a53..9419bb7 100644 --- a/avatar/runner.py +++ b/avatar/runner.py @@ -110,6 +110,9 @@ def run(self) -> bool: # Enable Bumble snoop logs. os.environ.setdefault('BUMBLE_SNOOPER', f'btsnoop:file:{self.logs_dir}/{_BUMBLE_BTSNOOP_FMT}') + # Set Mobly log path. + os.environ.setdefault('ENV_MOBLY_LOGPATH', str(self.logs_dir)) + # Execute the suite ok = True for config in self.test_run_configs: