host-info.yaml looks too cryptic, so use spinlock.yaml as example can be more practical and simple.
Signed-off-by: Zhang Yale ylzhangah@qq.com --- ...03\346\265\213\344\273\273\345\212\241.md" | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-)
diff --git "a/doc/manual/\345\246\202\344\275\225\347\231\273\345\275\225\346\265\213\350\257\225\346\234\272\350\260\203\346\265\213\344\273\273\345\212\241.md" "b/doc/manual/\345\246\202\344\275\225\347\231\273\345\275\225\346\265\213\350\257\225\346\234\272\350\260\203\346\265\213\344\273\273\345\212\241.md" index 7a54505..d423bcd 100644 --- "a/doc/manual/\345\246\202\344\275\225\347\231\273\345\275\225\346\265\213\350\257\225\346\234\272\350\260\203\346\265\213\344\273\273\345\212\241.md" +++ "b/doc/manual/\345\246\202\344\275\225\347\231\273\345\275\225\346\265\213\350\257\225\346\234\272\350\260\203\346\265\213\344\273\273\345\212\241.md" @@ -12,38 +12,43 @@
### 方法一:在测试机运行脚本之前进入测试机调测任务
-在job.yaml里加上sshd和sleep字段,测试机在运行脚本之前sleep, 并免密登录进去,手动输入命令或脚本进行调试,以host-info.yaml为例: +在job.yaml里加上sshd和sleep字段,测试机在运行脚本之前sleep, 并免密登录进去,手动输入命令或脚本进行调试,以spinlock.yaml为例:
```yaml - suite: host-info - category: functional + suite: spinlock + category: benchmark + + nr_threads: + - 1
sshd: # sleep at the bottom sleep: 1h - - host-info: + spinlock: ```
### 方法二:在测试任务运行失败时进入测试机调测任务
-在job.yaml里加上on_fail字段,并在on_fail下加上sshd和sleep字段,测试任务失败后,免密登录进去手动调试,以host-info.yaml为例: +在job.yaml里加上on_fail字段,并在on_fail下加上sshd和sleep字段,测试任务失败后,免密登录进去手动调试,以spinlock.yaml为例:
```yaml - suite: host-info - category: functional + suite: spinlock + category: benchmark + + nr_threads: + - 1
- host-info: + spinlock: on_fail: sshd: - sleep: 1000s + sleep: 1h ```
## 2.2 提交job.yaml
### 方法一:直接提交
- submit host-info.yaml + submit spinlock.yaml
在收到邮件后,按照邮件提示手动免密登录到执行机调测
@@ -51,6 +56,6 @@
### 方法二:带参数提交
- submit -m -c host-info.yaml + submit -m -c spinlock.yaml
该方法不用查看邮件,可自动免密登录到测试机