提交 16558eff 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

fix a bug

上级 ea9c84fe
...@@ -141,7 +141,7 @@ func resResGo() (*asset, error) { ...@@ -141,7 +141,7 @@ func resResGo() (*asset, error) {
return nil, err return nil, err
} }
info := bindataFileInfo{name: "res/res.go", size: 32768, mode: os.FileMode(420), modTime: time.Unix(1567575061, 0)} info := bindataFileInfo{name: "res/res.go", size: 32768, mode: os.FileMode(420), modTime: time.Unix(1568021328, 0)}
a := &asset{bytes: bytes, info: info} a := &asset{bytes: bytes, info: info}
return a, nil return a, nil
} }
......
...@@ -214,7 +214,7 @@ func CheckFileIsScript(path string) bool { ...@@ -214,7 +214,7 @@ func CheckFileIsScript(path string) bool {
} }
func CheckFileContentIsScript(content string) bool { func CheckFileContentIsScript(content string) bool {
pass, _ := regexp.MatchString(`<<<TC\n`, content) pass, _ := regexp.MatchString(`<<<TC`, content)
return pass return pass
} }
goto start
<<<TC
caseId: 1
productId: 1
title: Test network connection
steps: steps that begin with @ are checkpoints
step1 type "ping zentao.com"
@step2 check the output contains "TTL"
expects:
# @step2
.*TTL.*
TC;
:start
@echo off
:: print the line with TTL
for /f "delims=" %%i in ('ping zentao.com -n 1 ^| findstr "TTL"') do set output=%%i
echo #
echo %output%
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册