From 70cd4a0658ec43ae7b1195019d1e2d32df384835 Mon Sep 17 00:00:00 2001 From: Qiu Tingting Date: Tue, 23 May 2023 15:09:54 +0800 Subject: e2fsprogs: fix ptest bug for second running At second running, there are four new failed case: d_loaddump f_bigalloc_badinode f_bigalloc_orphan_list f_dup_resize The test_data.tmp is necessary, but it is deleted by run-ptest. So it should be restored after testing. It is a backport for http://cgit.openembedded.org/openembedded-core/commit/?h=master-next&id=d0d08dd9a8a179e25b9cfcbac696c1d212a1910c It should be deleted after yocto version up. SPEC-4753 Signed-off-by: Qiu Tingting Change-Id: I9206ec35ed9964a9136cdddee084a4c80ca13560 --- meta-agl-test/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'meta-agl-test/recipes-devtools/e2fsprogs') diff --git a/meta-agl-test/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend b/meta-agl-test/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend index 2a4337dc..6008d75e 100644 --- a/meta-agl-test/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend +++ b/meta-agl-test/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend @@ -6,3 +6,11 @@ do_compile_ptest:append() { ${B}/tests/test_script } + +# fix bug for ptest with second running. +# Delete it after yocto version up. +do_install_ptest:append() { + install -d ${D}${PTEST_PATH}/data + install -m 0644 ${B}/tests/test_data.tmp ${D}${PTEST_PATH}/data/ + echo 'cp ../data/test_data.tmp ./' >> ${D}${PTEST_PATH}/run-ptest +} -- cgit 1.2.3-korg