Files
meta-openembedded/meta-python/recipes-devtools/python/python3-glances/run-ptest
T
Khem Raj 1a442c230b python3-glances: fix ptest args being consumed by GlancesMain's argv slicing
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>
2026-08-16 16:21:50 -07:00

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