From 8f24630c4ad26d0ee868f792ddf3858a4a5f3a0f Mon Sep 17 00:00:00 2001 From: qingwangrh Date: Fri, 6 Sep 2024 10:15:14 +0800 Subject: [PATCH] libblkio_release_test:fix untar error There are multi packages for libblkio since version 1.5. Signed-off-by: qingwangrh --- qemu/deps/block_device/libblkio_release_test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qemu/deps/block_device/libblkio_release_test.sh b/qemu/deps/block_device/libblkio_release_test.sh index 524315a604..10be75fd3b 100755 --- a/qemu/deps/block_device/libblkio_release_test.sh +++ b/qemu/deps/block_device/libblkio_release_test.sh @@ -31,7 +31,9 @@ rpm -ivh ${libblkio_package} || tests_failed "Install source rpm failed" mkdir source;cd source -tar xvf ~/rpmbuild/SOURCES/libblkio-v[0-9]*.bz2 || tests_failed "Untar source rpm failed" +for p in `ls ~/rpmbuild/SOURCES/libblkio-v[0-9]*.bz2`;do +tar xvf $p || tests_failed "Untar source rpm failed" +done cd `ls -d libblkio*` || tests_failed "Can not find source folder"