mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-21 01:27:24 +00:00
Error out if enumerating the generated data files fails
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
+7
-1
@@ -63,7 +63,13 @@ PYTHON ?= $(shell if type python3 >/dev/null 2>/dev/null; then echo python3; els
|
||||
endif
|
||||
|
||||
.PHONY: generated_files
|
||||
GENERATED_DATA_FILES := $(patsubst tests/%,%,$(shell $(PYTHON) scripts/generate_psa_tests.py --list))
|
||||
GENERATED_DATA_FILES := $(patsubst tests/%,%,$(shell \
|
||||
$(PYTHON) scripts/generate_psa_tests.py --list || \
|
||||
echo FAILED \
|
||||
))
|
||||
ifeq ($(GENERATED_DATA_FILES),FAILED)
|
||||
$(error "$(PYTHON) scripts/generate_psa_tests.py --list" failed)
|
||||
endif
|
||||
GENERATED_FILES := $(GENERATED_DATA_FILES)
|
||||
generated_files: $(GENERATED_FILES)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user