mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-01 16:10:25 +00:00
tests/test_core.py does GlancesMain(args_begin_at=2) at module import time, slicing the real process sys.argv. Passing --automake on the pytest command line (rather than via PYTEST_ADDOPTS) shifted that slice and broke it; set it via PYTEST_ADDOPTS instead. Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 lines
283 B
Bash
7 lines
283 B
Bash
#!/bin/sh
|
|
|
|
# test_core.py does `GlancesMain(args_begin_at=2)` at module import time,
|
|
# slicing the real process sys.argv; passing --automake on the command line
|
|
# (rather than via PYTEST_ADDOPTS) shifts that slice and breaks it.
|
|
PYTEST_ADDOPTS="--automake" pytest tests/test_core.py
|