mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
mdadm: correctly set up testing location for ptests
1. Do not clutter /, create a special-purpose dir 2. Clean up the dir after tests are done (if this is not performed, disk will overflow later in ptesting). 3. Fix up more locations in ptests to use the dir. Upstream default /var/tmp is not suitable as it is not big enough (mdadm needs about 500 Mb) (From OE-Core rev: cd4fc516ce0f8e4c5cadb7a700fe29643ed9128d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
4821e629ef
commit
fa7ca65e8b
|
@ -1,4 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p /mdadm-testing-dir
|
||||
# make the test continue to execute even one fail
|
||||
./test --keep-going
|
||||
|
||||
rm -rf /mdadm-testing-dir/*
|
||||
|
|
|
@ -75,7 +75,8 @@ do_compile_ptest() {
|
|||
do_install_ptest() {
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/tests ${D}${PTEST_PATH}/tests
|
||||
cp ${S}/test ${D}${PTEST_PATH}
|
||||
sed -e 's!sleep 0.*!sleep 1!g; s!/var/tmp!/!g' -i ${D}${PTEST_PATH}/test
|
||||
sed -e 's!sleep 0.*!sleep 1!g; s!/var/tmp!/mdadm-testing-dir!g' -i ${D}${PTEST_PATH}/test
|
||||
sed -e 's!/var/tmp!/mdadm-testing-dir!g' -i ${D}${PTEST_PATH}/tests/*
|
||||
sed -i -e '/echo -ne "$_script... "/d' \
|
||||
-e 's/echo "succeeded"/echo -e "PASS: $_script"/g' \
|
||||
-e '/save_log fail/N; /_fail=1/i\\t\t\techo -ne "FAIL: $_script"' \
|
||||
|
|
Loading…
Reference in New Issue
Block a user