Skip to content

Commit

Permalink
depends.py: set unique configuration names in outcome file
Browse files Browse the repository at this point in the history
Set unique configuration names in the outcome file. This was lost in the
rewrite from depends-*.pl to depends.py.

Fix Mbed-TLS#7290

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
  • Loading branch information
gilles-peskine-arm committed Feb 12, 2024
1 parent ede909f commit 0af7a90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/scripts/depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ def test(self, options):
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))
Expand Down

0 comments on commit 0af7a90

Please sign in to comment.