From ecaaba6b5881cfa62736f89ebd1a03f8027f3e53 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 2 Jun 2017 20:40:04 +0800 Subject: improve xxx_script test --- tests/apis/xxx_script/xmake.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/apis/xxx_script/xmake.lua b/tests/apis/xxx_script/xmake.lua index 84f41c225..5b529622a 100644 --- a/tests/apis/xxx_script/xmake.lua +++ b/tests/apis/xxx_script/xmake.lua @@ -1,8 +1,8 @@ target("test") before_build("iphoneos|arm64", function (target) - assert(vformat("$(plat)") == "iphoneos") - assert(vformat("$(arch)") == "arm64") + assert(val("plat") == "iphoneos") + assert(val("arch") == "arm64") end) before_build("macosx", function (target) @@ -22,5 +22,5 @@ target("test") end) after_build("linux|*", function (target) - assert(vformat("$(plat)") == "linux") + assert(val("plat") == "linux") end) -- cgit v1.3.1