e2fsprogs: fix ptest bug for second running 22/28922/2
authorQiu Tingting <qiutt@fujitsu.com>
Tue, 23 May 2023 07:09:54 +0000 (15:09 +0800)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 30 May 2023 12:47:44 +0000 (12:47 +0000)
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 <qiutt@fujitsu.com>
Change-Id: I9206ec35ed9964a9136cdddee084a4c80ca13560

meta-agl-test/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend

index 2a4337d..6008d75 100644 (file)
@@ -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
+}