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:
Ovidiu Panait
2023-08-04 19:12:53 +03:00
committed by Richard Purdie
parent 8cd7786bca
commit b06d0238c7

View File

@@ -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