File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ log() {
2121# Find test case path by name
2222find_test_case_by_name () {
2323 local test_name=" $1 "
24- find $__RUNNER_SUITES_DIR -type d -iname " $test_name " 2> /dev/null
24+ if [ -d " $__RUNNER_SUITES_DIR " ]; then
25+ find $__RUNNER_SUITES_DIR -type d -iname " $test_name " 2> /dev/null
26+ else
27+ find " ${PWD} " -type d -iname " $test_name " 2> /dev/null
28+ fi
2529}
2630
2731# Find test case path by name
@@ -33,7 +37,11 @@ find_test_case_bin_by_name() {
3337# Find test case path by name
3438find_test_case_script_by_name () {
3539 local test_name=" $1 "
36- find $__RUNNER_UTILS_BIN_DIR -type d -iname " $test_name " 2> /dev/null
40+ if [ -d " $__RUNNER_UTILS_BIN_DIR " ]; then
41+ find $__RUNNER_UTILS_BIN_DIR -type d -iname " $test_name " 2> /dev/null
42+ else
43+ find " ${PWD} " -type d -iname " $test_name " 2> /dev/null
44+ fi
3745}
3846
3947check_dependencies () {
You can’t perform that action at this time.
0 commit comments