@@ -1338,9 +1338,9 @@ def test_make_module_step(self):
13381338 vals = [vals ]
13391339 for val in vals :
13401340 if get_module_syntax () == 'Tcl' :
1341- regex = re .compile (r'^prepend-path\s+%s\s+\$root/%s$' % (key , val ), re .M )
1341+ regex = re .compile (r'^prepend-path\s+(-d ".")? %s\s+\$root/%s$' % (key , val ), re .M )
13421342 elif get_module_syntax () == 'Lua' :
1343- regex = re .compile (r'^prepend_path\("%s", pathJoin\(root, "%s"\)\)$' % (key , val ), re .M )
1343+ regex = re .compile (r'^prepend_path\("%s", pathJoin\(root, "%s"\)(, ".") \)$' % (key , val ), re .M )
13441344 else :
13451345 self .fail ("Unknown module syntax: %s" % get_module_syntax ())
13461346 self .assertTrue (regex .search (txt ), "Pattern %s found in %s" % (regex .pattern , txt ))
@@ -1353,9 +1353,9 @@ def test_make_module_step(self):
13531353 vals = [vals ]
13541354 for val in vals :
13551355 if get_module_syntax () == 'Tcl' :
1356- regex = re .compile (r'^append-path\s+%s\s+\$root/%s$' % (key , val ), re .M )
1356+ regex = re .compile (r'^append-path\s+(-d ".")? %s\s+\$root/%s$' % (key , val ), re .M )
13571357 elif get_module_syntax () == 'Lua' :
1358- regex = re .compile (r'^append_path\("%s", pathJoin\(root, "%s"\)\)$' % (key , val ), re .M )
1358+ regex = re .compile (r'^append_path\("%s", pathJoin\(root, "%s"\)(, ".") \)$' % (key , val ), re .M )
13591359 else :
13601360 self .fail ("Unknown module syntax: %s" % get_module_syntax ())
13611361 self .assertTrue (regex .search (txt ), "Pattern %s found in %s" % (regex .pattern , txt ))
0 commit comments