提交 82169df2 编写于 作者: J Jared Parsons

Fix test skip test on Mac

The bash regex equality operator on Mac does not match an empty string to
all input strings as it does for Linux. This was causing all of our tests
to fail to run on Mac.

Added an explicit check for the empty case.
上级 65a9c802
......@@ -45,8 +45,8 @@ do
runtimeconfig_json="${file_name%.*}".runtimeconfig.json
# If the user specifies a test on the command line, only run that one
# "${2:-}" => take second arg, empty string if unset (regex always matches if empty)
if [[ ! "${file_name}" =~ "${2:-}" ]]
# "${2:-}" => take second arg, empty string if unset
if [[ ("${2:-}" != "") && (! "${file_name}" =~ "${2:-}") ]]
then
echo "Skipping ${file_name}"
continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册