summaryrefslogtreecommitdiff
path: root/drivers/ddr/imx/phy/ddrphy_train.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-12-11 06:18:58 -0700
committerTom Rini <trini@konsulko.com>2024-12-17 09:11:43 -0600
commita8f09d62821750aa755a8fe40bb72febc9154f20 (patch)
tree0ccfc1fc5b4a940c50b27db8a82228d240b9da21 /drivers/ddr/imx/phy/ddrphy_train.c
parent429d4846ea2da572b3abe7aca7354189061676b6 (diff)
test/py: Always use the current dir as the source tree
The logic in get_details() retrieves the default source directory from the Labgrid settings. This is convenient for interactive use, since it allows pytests to be run from any directory and still find the source tree. However, it is not actually correct. Gitlab sets the current directory to the source tree and expects that to be used. At present it is ignored. The result is that Gitlab builds whatever happens to be in the default source directory, ignoring the tree it is supposed to be building. Fix this by using the directory of the source tree, always. This is obtained by looking at the grandparent of the conftest.py file. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Tom Rini <trini@konsulko.com> Fixes: bf89a8f1fc2 ("test: Introduce the concept of a role") Tested-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/ddr/imx/phy/ddrphy_train.c')
0 files changed, 0 insertions, 0 deletions