diff --git a/tests/scripts/depends.py b/tests/scripts/depends.py index c6a438ee36..346f6ff710 100755 --- a/tests/scripts/depends.py +++ b/tests/scripts/depends.py @@ -192,7 +192,10 @@ and subsequent commands are tests that cannot run if the build failed).''' success = True for command in self.commands: log_command(command) - ret = subprocess.call(command) + env = os.environ.copy() + if 'MBEDTLS_TEST_CONFIGURATION' in env: + env['MBEDTLS_TEST_CONFIGURATION'] += '-' + self.name + ret = subprocess.call(command, env=env) if ret != 0: if command[0] not in ['make', options.make_command]: log_line('*** [{}] Error {}'.format(' '.join(command), ret))