testing/infra/builder: call make with empty env
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Sun, 29 Oct 2017 14:06:00 +0000 (12:06 -0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 1 Apr 2018 17:59:36 +0000 (19:59 +0200)
commitb19cb8143b0c1337d370010550532c4fc23124d9
tree8ee2bfe435f6dc0fb36f8518b29f16d5e4953def
parenta7785f47ba7c00dcaa9676d77fa1fffabe628837
testing/infra/builder: call make with empty env

Use an empty environment when calling make, but import PATH so the
buildroot tree under test can find binaries from the host machine.

Since environment variables are now ignored, move the handling of
BR2_DL_DIR to the defconfig to keep the current precedence of -d:

    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: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/testing/infra/basetest.py
support/testing/infra/builder.py
support/testing/run-tests