We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab4b688 commit 61baa2eCopy full SHA for 61baa2e
1 file changed
flow/test/test_helper.sh
@@ -8,9 +8,10 @@ cd "$(dirname "$(readlink -f "$0")")/../"
8
DESIGN_NAME=${1:-gcd}
9
PLATFORM=${2:-nangate45}
10
CONFIG_MK=${3:-config.mk}
11
-if [ $# -eq 4 ]; then
+if [ $# -ge 4 ]; then
12
FLOW_VARIANT=$4
13
fi
14
+TARGET=${5:-finish}
15
DESIGN_CONFIG=./designs/$PLATFORM/$DESIGN_NAME/$CONFIG_MK
16
LOG_FILE=./logs/$PLATFORM/$DESIGN_NAME.log
17
mkdir -p "./logs/$PLATFORM"
@@ -26,7 +27,7 @@ $__make clean_all clean_metadata 2>&1 | tee "$LOG_FILE"
26
27
# turn off abort on error so we can always capture the result
28
set +e
29
-$__make finish metadata 2>&1 | tee -a "$LOG_FILE"
30
+$__make "${TARGET}" metadata 2>&1 | tee -a "$LOG_FILE"
31
32
# Save the return code to return as the overall status after we package
33
# the results
0 commit comments