output: send self-test report email, the email body like this
Dear Liu Yinsi:
Your self-test groud_id=selftest job result is: kvcount.job_state=abnormal: 1 kvcount.job_state=failed: 6 kvcount.job_state=finished: 8 raw.id.[job_state=abnormal]: ["z9.91"] raw.id.[job_state=failed]: ["z9.85","z9.87","z9.88","z9.89","z9.86","z9.84"] raw.id.[job_state=finished]: ["z9.90","z9.96","z9.97","z9.92","z9.94","z9.93","z9.95","z9.98"]
Regards Compass-CI
Signed-off-by: Liu Yinsi liuyinsi@163.com --- tests/self-test | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/self-test
diff --git a/tests/self-test b/tests/self-test new file mode 100644 index 000000000..933e1fa4b --- /dev/null +++ b/tests/self-test @@ -0,0 +1,27 @@ +#!/bin/bash + +. $LKP_SRC/lib/email.sh + +submit_args=( + "testbox=dc-8g cci-depends.benchmark=sshd cci-depends.yaml" + "testbox=dc-8g borrow-1h.yaml runtime=1m" + "testbox=vm-2p8g borrow-1h.yaml runtime=1m" + ) + +submit_one() +{ + submit_result=$(submit -m $args group_id=selftest) +} + +submit_all() +{ + for args in "${submit_args[@]}" + do + submit_one $args + done + + job_state=$(es-jobs group_id=selftest | grep job_state) +} + +submit_all +send_email selftest
please ignore it, see v3
Thanks, Yinsi
On Thu, Apr 22, 2021 at 02:03:14PM +0800, Liu Yinsi wrote:
output: send self-test report email, the email body like this
Dear Liu Yinsi:
Your self-test groud_id=selftest job result is: kvcount.job_state=abnormal: 1 kvcount.job_state=failed: 6 kvcount.job_state=finished: 8 raw.id.[job_state=abnormal]: ["z9.91"] raw.id.[job_state=failed]: ["z9.85","z9.87","z9.88","z9.89","z9.86","z9.84"] raw.id.[job_state=finished]: ["z9.90","z9.96","z9.97","z9.92","z9.94","z9.93","z9.95","z9.98"]
Regards Compass-CI
Signed-off-by: Liu Yinsi liuyinsi@163.com
tests/self-test | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/self-test
diff --git a/tests/self-test b/tests/self-test new file mode 100644 index 000000000..933e1fa4b --- /dev/null +++ b/tests/self-test @@ -0,0 +1,27 @@ +#!/bin/bash
+. $LKP_SRC/lib/email.sh
+submit_args=(
"testbox=dc-8g cci-depends.benchmark=sshd cci-depends.yaml"
"testbox=dc-8g borrow-1h.yaml runtime=1m"
"testbox=vm-2p8g borrow-1h.yaml runtime=1m"
)
+submit_one() +{
- submit_result=$(submit -m $args group_id=selftest)
+}
+submit_all() +{
- for args in "${submit_args[@]}"
- do
submit_one $args
- done
- job_state=$(es-jobs group_id=selftest | grep job_state)
+}
+submit_all
+send_email selftest
2.23.0