Skip to content

Commit e00ddd3

Browse files
committed
ci: allow early stop
Signed-off-by: Vitor Bandeira <[email protected]>
1 parent ab4b688 commit e00ddd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flow/test/test_helper.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ CONFIG_MK=${3:-config.mk}
1111
if [ $# -eq 4 ]; then
1212
FLOW_VARIANT=$4
1313
fi
14+
TARGET=${5:-finish}
1415
DESIGN_CONFIG=./designs/$PLATFORM/$DESIGN_NAME/$CONFIG_MK
1516
LOG_FILE=./logs/$PLATFORM/$DESIGN_NAME.log
1617
mkdir -p "./logs/$PLATFORM"
@@ -26,7 +27,7 @@ $__make clean_all clean_metadata 2>&1 | tee "$LOG_FILE"
2627
# turn off abort on error so we can always capture the result
2728
set +e
2829

29-
$__make finish metadata 2>&1 | tee -a "$LOG_FILE"
30+
$__make "${TARGET}" metadata 2>&1 | tee -a "$LOG_FILE"
3031

3132
# Save the return code to return as the overall status after we package
3233
# the results

0 commit comments

Comments
 (0)