提交 514c1c70 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

set case id to 0 to avoid to be run with suite all.cs

上级 64e5811c
1
3
\ No newline at end of file
......@@ -5,8 +5,8 @@
[case]
title=the simple demo for ztf
cid=1
pid=1
cid=0
pid=0
step1 >> expect 1
step2
......
......@@ -5,8 +5,8 @@
[case]
title=with multi groups
cid=1
pid=1
cid=0
pid=0
[group]
step 1 >> expect 1
......
......@@ -5,8 +5,8 @@
[case]
title=step multi lines
cid=1
pid=1
cid=0
pid=0
[group title 1]
[1. steps]
......
......@@ -5,8 +5,8 @@
[case]
title=step multi_lines
cid=1
pid=1
cid=0
pid=0
[group]
step 1 >>
......
......@@ -5,8 +5,8 @@
[case]
title=the expect with regx
cid=1
pid=1
cid=0
pid=0
step1 >> abc123
......
......@@ -5,8 +5,8 @@
[case]
title=expect with regx
cid=1
pid=1
cid=0
pid=0
step1 >> ^abc\d{3}$
......
......@@ -5,8 +5,8 @@
[case]
title=expect with format string
cid=1
pid=1
cid=0
pid=0
step1 >> %s%d
......
......@@ -5,8 +5,8 @@
[case]
title=skip
cid=1
pid=1
cid=0
pid=0
[group]
step 1 >> expect 1
......
......@@ -15,6 +15,7 @@ require (
github.com/gopherjs/gopherjs v0.0.0-20190915194858-d3ddacdb130f // indirect
github.com/gorilla/mux v1.7.3
github.com/jroimartin/gocui v0.4.0
github.com/jteeuwen/go-bindata v3.0.7+incompatible // indirect
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/kr/pretty v0.1.0 // indirect
......
此差异已折叠。
......@@ -21,8 +21,6 @@ import (
func InitConfig() {
vari.ZtfDir = fileUtils.GetZtfDir()
constant.ConfigFile = vari.ZtfDir + constant.ConfigFile
// preference from yaml
vari.Config = getInst()
// screen size
......@@ -86,7 +84,10 @@ func ReadCurrConfig() model.Config {
}
func getInst() model.Config {
CheckConfig()
isSet := len(os.Args) > 1 && (os.Args[1] == "set" || os.Args[1] == "-set")
if !isSet {
CheckConfig()
}
configFile := constant.ConfigFile
......
......@@ -118,7 +118,7 @@ func GetInput(regx string, defaultVal string, fmtStr string, params ...interface
os.Exit(1)
}
logUtils.PrintToStdOut(ret, -1)
//logUtils.PrintToStdOut(ret, -1)
if regx == "" {
return ret
......
go-bindata -o=res/res.go -pkg=res res/ res/doc res/json res/template
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ztf/ztf.exe src/ztf.go
GO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ztf/ztf-linux src/ztf.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ztf/ztf-mac src/ztf.go
rm -rf ztf
mkdir ztf
mkdir ztf/log
cp -r conf ztf/
cp -r demo ztf/
go-bindata -o=res/res.go -pkg=res res/ res/doc res/json res/template
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ztf/ztf.exe src/ztf.go
GO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ztf/ztf-linux src/ztf.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ztf/ztf-mac src/ztf.go
zip -r ztf/ztf-win-2.0.zip ztf/ztf.exe ztf/demo ztf/conf ztf/log
zip -r ztf/ztf-linux-2.0.zip ztf/ztf-linux ztf/demo ztf/conf ztf/log
zip -r ztf/ztf-mac-2.0.zip ztf/ztf-mac ztf/demo ztf/conf ztf/log
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册