| Message ID | 20260816232358.1947922-5-khem.raj@oss.qualcomm.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-python,01/12] python3-cbor2: add tzdata/zoneinfo RDEPENDS for ptest | expand |
diff --git a/meta-python/recipes-devtools/python/python3-glances/run-ptest b/meta-python/recipes-devtools/python/python3-glances/run-ptest index f56ca03dca..5903768942 100644 --- a/meta-python/recipes-devtools/python/python3-glances/run-ptest +++ b/meta-python/recipes-devtools/python/python3-glances/run-ptest @@ -1,3 +1,6 @@ #!/bin/sh -pytest tests/test_core.py +# 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