[script] script/test cert with multiple arguments (#6082)

This commit allows specifying multiple arguments for script/test cert
path/to/script.py.

This is useful for running a selected test case when the test script
contains multiple test cases.
This commit is contained in:
Simon Lin
2021-01-18 17:19:50 -08:00
committed by GitHub
parent 0f91cb8129
commit 5e5f4c7ed3
+4 -2
View File
@@ -192,7 +192,7 @@ do_cert()
fi
[[ ! -d tmp ]] || rm -rvf tmp
PYTHONUNBUFFERED=1 "$1"
PYTHONUNBUFFERED=1 "$@"
}
do_cert_suite()
@@ -555,11 +555,13 @@ main()
;;
cert)
shift
do_cert "$1"
do_cert "$@"
shift $#
;;
cert_suite)
shift
do_cert_suite "$@"
shift $#
;;
get_thread_wireshark)
do_get_thread_wireshark