mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
mdadm: save ptest logs
Run test script with --save-logs and --logdir parameters, so the log files can be retrieved in case of failure. (From OE-Core rev: 32fe21e420b1c2a4e7ef9d7c768a22c9a7caa115) Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8cd7786bca
commit
b06d0238c7
@@ -1,7 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p /mdadm-testing-dir
|
||||
# make the test continue to execute even one fail
|
||||
dir=. ./test --keep-going --disable-integrity --skip-broken
|
||||
logdir=$PWD/logs
|
||||
targetdir=/mdadm-testing-dir
|
||||
|
||||
rm -rf /mdadm-testing-dir/*
|
||||
rm -rf $targetdir $logdir
|
||||
mkdir -p $targetdir $logdir
|
||||
|
||||
# make the test continue to execute even one fail
|
||||
./test --keep-going --disable-integrity --skip-broken --save-logs --logdir=$logdir
|
||||
|
||||
Reference in New Issue
Block a user