diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2017-09-17 11:20:28 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-10-10 23:33:07 +0200 |
commit | 33f3cb8a878e208d46db3def78fe990075b681fe (patch) | |
tree | 69f5f4b9ff23ce7cb2bac91ad7a7cff8efd5a42e /support/testing/run-tests | |
parent | 0633eb58a2912328508a76f8fe9875a0d113a880 (diff) | |
download | buildroot-33f3cb8a878e208d46db3def78fe990075b681fe.tar.gz buildroot-33f3cb8a878e208d46db3def78fe990075b681fe.zip |
support/run-tests: export download dir
Currently, the download directory, when specified with the -d option, is
only used to store the files downloaded by the testing infra, not those
downloaded by Buildroot.
So, we end up with this situation:
BR2_DL_DIR | -d DIR | test downloads | BR downloads
------------+----------+------------------+--------------
unset | unset | [error] | [error]
unset | set | in $(DIR) | in $(TOP_DIR)/dl
set | unset | in $(BR2_DL_DIR) | in $(BR2_DL_DIR)
set | set | in $(DIR) | in $(BR2_DL_DIR)
This is not very consistent.
We change the behaviour so that the value of -d always takes precedence,
and is used by Buildroot as well, giving this new behaviour:
BR2_DL_DIR | -d DIR | test downloads | BR downloads
------------+----------+------------------+--------------
unset | unset | [error] | [error]
unset | set | in $(DIR) | in $(DIR)
set | unset | in $(BR2_DL_DIR) | in $(BR2_DL_DIR)
set | set | in $(DIR) | in $(DIR)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/testing/run-tests')
-rwxr-xr-x | support/testing/run-tests | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/support/testing/run-tests b/support/testing/run-tests index 270e78cff7..f8cee09ed1 100755 --- a/support/testing/run-tests +++ b/support/testing/run-tests @@ -58,6 +58,7 @@ def main(): return 1 BRTest.downloaddir = os.path.abspath(args.download) + os.putenv("BR2_DL_DIR", BRTest.downloaddir) if args.output is None: print "Missing output directory, please use -o/--output" |