File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1515
1616 local wks , prj
1717
18- local cwd = os .getcwd ()
19- local oldcwd
20-
2118 function suite .setup ()
2219 wks , prj = test .createWorkspace ()
2320
2421 -- We change the directory to get nice relative paths
25- oldcwd = os .getcwd ()
26- os .chdir (cwd )
22+ os .chdir (_SCRIPT_DIR )
2723
2824 -- Create a token to be used in search paths
2925 p .api .register { name = " mytoken" , kind = " string" , scope = " config" }
3228
3329 function suite .teardown ()
3430 mytoken = nil
35- os .chdir (oldcwd )
3631 end
3732
3833 local function run ()
3934 local cfg = test .getconfig (prj , " Debug" )
4035
4136 local files = {}
4237 for _ , file in ipairs (cfg .files ) do
43- table.insert (files , path .getrelative (cwd , file ))
38+ table.insert (files , path .getrelative (os . getcwd () , file ))
4439 end
4540
4641 return files
You can’t perform that action at this time.
0 commit comments