From cd57e31c8e6bad3883bf81e4cd4c09d4c7a72131 Mon Sep 17 00:00:00 2001 From: Fredrik Skold Date: Wed, 1 Jul 2020 12:53:50 +0200 Subject: [PATCH] Fix bug, test script should accept both 1 and 2 arguments (#165) Usefull when placing the output in another directory. (cherry picked from commit e89f929f6c7d97d084ec1fc7e37137d5d730bb03) --- test/generate-xml.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/generate-xml.sh b/test/generate-xml.sh index b504fad0..f6c79ff7 100755 --- a/test/generate-xml.sh +++ b/test/generate-xml.sh @@ -19,7 +19,7 @@ touch $FAILING_TESTS touch $NEW_TESTS # Check commandline parameter -if [ $# -ne 1 ]; then +if [ $# -lt 1 ] || [ $# -gt 2 ]; then echo "usage: $0 path_to_directory_with_xml_files" echo "or" echo "usage: $0 path_to_directory_with_xml_files path_to_mbus_parse_hex_with_filename"