From cbad38152f8b3f27888fe1c5ff9c95acb25dc71e Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 20 Jun 2020 23:19:31 +0800 Subject: fix test for calling msbuild --- tests/plugins/project/test.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/plugins') diff --git a/tests/plugins/project/test.lua b/tests/plugins/project/test.lua index fd16f8645..a518a5aa9 100644 --- a/tests/plugins/project/test.lua +++ b/tests/plugins/project/test.lua @@ -34,7 +34,9 @@ function test_vsxmake(t) try { function () - os.execv("msbuild", {"/P:XmakeDiagnosis=true", "/P:XmakeVerbose=true"}, {envs = toolchain.load("msvc"):runenvs()}) + local runenvs = toolchain.load("msvc"):runenvs() + os.addenv("PATH", runenvs.PATH) + os.execv("msbuild", {"/P:XmakeDiagnosis=true", "/P:XmakeVerbose=true"}, {envs = runenvs}) end, catch { -- cgit v1.3.1