Skip to content

Commit 800d9e9

Browse files
committed
improve check test
1 parent 9c3345d commit 800d9e9

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import("lib.detect.find_tool")
1+
import("detect.sdks.find_dotnet")
22

33
function test_build(t)
4-
local dotnet = find_tool("dotnet")
5-
if dotnet then
4+
local dotnet = find_dotnet()
5+
if dotnet and dotnet.sdkver then
66
t:build()
77
else
8-
return t:skip("dotnet not found")
8+
return t:skip("dotnet sdk not found")
99
end
1010
end
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import("lib.detect.find_tool")
1+
import("detect.sdks.find_dotnet")
22

33
function test_build(t)
4-
local dotnet = find_tool("dotnet")
5-
if dotnet then
4+
local dotnet = find_dotnet()
5+
if dotnet and dotnet.sdkver then
66
t:build()
77
else
8-
return t:skip("dotnet not found")
8+
return t:skip("dotnet sdk not found")
99
end
1010
end
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import("lib.detect.find_tool")
1+
import("detect.sdks.find_dotnet")
22

33
function test_build(t)
4-
local dotnet = find_tool("dotnet")
5-
if dotnet then
4+
local dotnet = find_dotnet()
5+
if dotnet and dotnet.sdkver then
66
t:build()
77
else
8-
return t:skip("dotnet not found")
8+
return t:skip("dotnet sdk not found")
99
end
1010
end
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import("lib.detect.find_tool")
1+
import("detect.sdks.find_dotnet")
22

33
function test_build(t)
4-
local dotnet = find_tool("dotnet")
5-
if dotnet then
4+
local dotnet = find_dotnet()
5+
if dotnet and dotnet.sdkver then
66
t:build()
77
else
8-
return t:skip("dotnet not found")
8+
return t:skip("dotnet sdk not found")
99
end
1010
end
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import("lib.detect.find_tool")
1+
import("detect.sdks.find_dotnet")
22

33
function test_build(t)
4-
local dotnet = find_tool("dotnet")
5-
if dotnet then
4+
local dotnet = find_dotnet()
5+
if dotnet and dotnet.sdkver then
66
t:build()
77
else
8-
return t:skip("dotnet not found")
8+
return t:skip("dotnet sdk not found")
99
end
1010
end
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import("lib.detect.find_tool")
1+
import("detect.sdks.find_dotnet")
22

33
function test_build(t)
4-
local dotnet = find_tool("dotnet")
5-
if dotnet then
4+
local dotnet = find_dotnet()
5+
if dotnet and dotnet.sdkver then
66
t:build()
77
else
8-
return t:skip("dotnet not found")
8+
return t:skip("dotnet sdk not found")
99
end
1010
end

0 commit comments

Comments
 (0)