Skip to content

Commit 5a1a645

Browse files
committed
Address review feedback.
1 parent 32f9799 commit 5a1a645

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/self-test/test_runner.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
os.chdir(_MAIN_SCRIPT_DIR)
9090

9191
local startTime = os.clock()
92-
local cwd = os.getcwd()
9392
local hooks = _.installTestingHooks()
9493

9594
_TESTS_DIR = test.suite._TESTS_DIR

tests/project/test_sources.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
local cfg = test.getconfig(prj, "Debug")
3535

3636
local files = {}
37+
local cwd = os.getcwd()
3738
for _, file in ipairs(cfg.files) do
38-
table.insert(files, path.getrelative(os.getcwd(), file))
39+
table.insert(files, path.getrelative(cwd, file))
3940
end
4041

4142
return files

0 commit comments

Comments
 (0)