# # # patch "tests/util_mtnopt/__driver__.lua" # from [60dcf05b777dc17f918674a8ec449afe1b473d40] # to [84307ea94ec302c6d9bbe163955e8f5e86973ce0] # ============================================================ --- tests/util_mtnopt/__driver__.lua 60dcf05b777dc17f918674a8ec449afe1b473d40 +++ tests/util_mtnopt/__driver__.lua 84307ea94ec302c6d9bbe163955e8f5e86973ce0 @@ -10,12 +10,14 @@ normalized_testroot = normalize_path (te -- MinGW does not process the shebang in mtnopt; must invoke sh directly -- Vista will probably need to skip this test -check({"/bin/sh", "./mtnopt"}, 0, true) +-- Don't pass the full /bin/sh path, it looks like that doesn't always +-- work under mingw. +check({"sh", "./mtnopt"}, 0, true) check(qgrep('^MTN_database="' .. normalized_testroot .. '/test.db";$', "stdout")) check(qgrep('^MTN_branch="testbranch";$', "stdout")) -- check operation with a specific key and just returning the value -check({'/bin/sh', './mtnopt', '-v', '-kbranch'}, 0, true) +check({'sh', './mtnopt', '-v', '-kbranch'}, 0, true) check(not qgrep('^' .. normalized_testroot .. '/test.db$', "stdout")) check(qgrep('^testbranch$', "stdout"))