At present Labgrid only gets a subset of the variables when running pytests. Use the 'vars' environment variable instead, so that all of them are provided. This allows the board config to be adjusted in a test. Signed-off-by: Simon Glass <sjg@chromium.org>
35 lines
1.5 KiB
Plaintext
Executable File
35 lines
1.5 KiB
Plaintext
Executable File
# Copyright 2024 Google LLC
|
|
# Written by Simon Glass
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
# copy of this software and associated documentation files (the "Software"),
|
|
# to deal in the Software without restriction, including without limitation
|
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
# and/or sell copies of the Software, and to permit persons to whom the
|
|
# Software is furnished to do so, subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice shall be included in
|
|
# all copies or substantial portions of the Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
# DEALINGS IN THE SOFTWARE.
|
|
|
|
[ -n "${do_configure}" ] && config_arg=",config_file"
|
|
|
|
# The following spurious output is present with Python 3.12 on Ubuntu 24.04 so
|
|
# use a redirection to drop it:
|
|
|
|
# Error in sys.excepthook:
|
|
#
|
|
# Original exception was:
|
|
#
|
|
|
|
exec labgrid-client -r "${target}" ${vars} -a query -n \
|
|
UBootProviderDriver:board,board_extra,source_dir,build_dir,build_dir_extra${config_arg} \
|
|
2>/dev/null
|