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 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/self-test
diff --git a/tests/self-test b/tests/self-test new file mode 100644 index 000000000..cb06b7226 --- /dev/null +++ b/tests/self-test @@ -0,0 +1,28 @@ +#!/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() +{ + args="$1" + 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
On Thu, Apr 22, 2021 at 02:14:46PM +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:
the groud_id is no need in email.
Thanks, Xueliang
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 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/self-test
diff --git a/tests/self-test b/tests/self-test new file mode 100644 index 000000000..cb06b7226 --- /dev/null +++ b/tests/self-test @@ -0,0 +1,28 @@ +#!/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() +{
- args="$1"
- 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