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

use new case format

上级 27046b1e
...@@ -7,6 +7,7 @@ cid=0 ...@@ -7,6 +7,7 @@ cid=0
pid=0 pid=0
1. step 1 >> 1. step 1 >>
2. step 2 2. step 2
3. step 3 3. step 3
......
...@@ -15,18 +15,18 @@ pid=0 ...@@ -15,18 +15,18 @@ pid=0
3.1 step 3.1 step
3.2 step >> expect 3 3.2 step >> expect 3
[1. group title 1] [4. group title 1]
[1.1. steps] [4.1. steps]
step 1.1.1 step 4.1.1
step 1.1.2 step 4.1.2
[1.1. expects] [4.1. expects]
[1.2. steps] [4.2. steps]
step 1.2.1 step 4.2.1
step 1.2.2 step 4.2.2
[1.2. expects] [4.2. expects]
expect 1.2.1 expect 4.2.1
expect 1.2.2 expect 4.2.2
[esac] [esac]
...@@ -36,5 +36,5 @@ print(">>expect 1\n"); ...@@ -36,5 +36,5 @@ print(">>expect 1\n");
print(">>expect 3\n"); print(">>expect 3\n");
print(">>\n"); print(">>\n");
print("expect 1.2.1\n"); print("expect 4.2.1\n");
print("expect 1.2.2\n"); print("expect 4.2.2\n");
...@@ -141,7 +141,7 @@ func getStepNestedArrNew(lines []string) (ret []model.TestStep) { ...@@ -141,7 +141,7 @@ func getStepNestedArrNew(lines []string) (ret []model.TestStep) {
increase := 0 increase := 0
for index := 0; index < len(lines); index++ { for index := 0; index < len(lines); index++ {
line := lines[index] line := lines[index]
if strings.TrimSpace(line) == "" { if strings.TrimSpace(line) == "" || strings.TrimSpace(line) == ">>" || strings.TrimSpace(line) == "<<" {
continue continue
} }
......
...@@ -324,7 +324,10 @@ func ReadLogArrNew(content string) (isSkip bool, ret [][]string) { ...@@ -324,7 +324,10 @@ func ReadLogArrNew(content string) (isSkip bool, ret [][]string) {
ret = append(ret, temp) ret = append(ret, temp)
cpArr = make([]string, 0) cpArr = make([]string, 0)
model = ""
} }
} else if line == "<<" {
continue
} else { } else {
model = "single" model = "single"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册