Skip to content

Commit 7c3e5e5

Browse files
committed
fix script
1 parent 6463e4e commit 7c3e5e5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/core/run_tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def run_test_cases(args):
373373
"--inherit-env", is_flag=True, default=False, help="Inherit env variables"
374374
)
375375
@click.option(
376-
"--use-chaining-api",
376+
"--use-chaining-api/--no-chaining-api",
377377
is_flag=True,
378378
default=False,
379379
help="Use low-level chaining API to generate commands.",

test_runner

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ run_runtime_card_tests() {
2727
cd test/core && PYTHONPATH=`pwd`/../../ python3 run_tests.py --num-parallel 8 --contexts python3-all-local-cards-realtime --graphs $CARD_GRAPHS "$@" && cd ../../
2828
}
2929

30-
if [[ "$1" == "chain" ]]; then
30+
if [[ "${1:-}" == "chain" ]]; then
3131
shift
3232
USE_CHAINING_API="--use-chaining-api"
33+
else
34+
# Otherwise, set USE_CHAINING_API to "--no-chaining-api"
35+
USE_CHAINING_API="--no-chaining-api"
3336
fi
3437

3538
install_deps && install_extensions && run_tests "$USE_CHAINING_API" && run_runtime_card_tests "$USE_CHAINING_API"

0 commit comments

Comments
 (0)