diff options
author | Tom Rini <trini@konsulko.com> | 2025-01-25 16:27:30 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-01-25 16:28:27 -0600 |
commit | 292278d6828e6c8c6ae11bc8658586d1acc411d4 (patch) | |
tree | 89849177b7422c6ae8152c3a11ac9eee2ec9afd0 /test/py/conftest.py | |
parent | 0e198ff1a9114763af3e82e7abf884ee1da4e64f (diff) | |
parent | 1135dc50a3e1192ee6b68e788e716c6548dc7a50 (diff) |
Merge patch series "gitlab: Fixes to get StarFive VisionFive2 into the sjg lab"
Simon Glass <sjg@chromium.org> says:
This board fought valiantly against attempts to add it to my lab. After
several hours of debugging, I found problems in the Labgrid integration
(not included here), test.py and buildman
This series fixes these and the board now seems to be reliable enough.
Note that the board fails test_dm_compat
Link: https://github.com/labgrid-project/labgrid/pull/1411
Link: https://lore.kernel.org/r/20241214182024.1954974-1-sjg@chromium.org
Diffstat (limited to 'test/py/conftest.py')
-rw-r--r-- | test/py/conftest.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/py/conftest.py b/test/py/conftest.py index 6b7ed0586e2..3bd333bfd24 100644 --- a/test/py/conftest.py +++ b/test/py/conftest.py @@ -161,10 +161,15 @@ def get_details(config): env['U_BOOT_BUILD_DIR'] = build_dir if build_dir_extra: env['U_BOOT_BUILD_DIR_EXTRA'] = build_dir_extra - proc = subprocess.run(cmd, capture_output=True, encoding='utf-8', + + # Make sure the script sees that it is being run from pytest + env['U_BOOT_SOURCE_DIR'] = source_dir + + proc = subprocess.run(cmd, stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, encoding='utf-8', env=env) if proc.returncode: - raise ValueError(proc.stderr) + raise ValueError(f"Error {proc.returncode} running {cmd}: '{proc.stderr} '{proc.stdout}'") # For debugging # print('conftest: lab:', proc.stdout) vals = {} |