[Rpm-maint] [rpm-software-management/rpm] rpmtests: The testsuites are getting failed (Issue #2106)

dharanlinux notifications at github.com
Fri Jun 24 06:30:59 UTC 2022


Hi Team,

I am facing the below issue in most test cases.

Error log:

```
--- /dev/null   1970-01-01 00:00:00.189999999 +0000
+++ /rpm-4.17.0/tests/rpmtests.dir/at-groups/265/stderr 1970-01-01 00:00:34.219999986 +0000
@@ -0,0 +1,5 @@
+error: File not found: /build/BUILDROOT/replacetest-1.0-1.%{_arch}/opt/*
+    File not found: /build/BUILDROOT/replacetest-1.0-1.%{_arch}/opt/*
+error: open of /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm failed: No such file or directory
+mv: cannot stat '/rpm-4.17.0/tests/rpmtests.dir/265/testing/opt/foo': No such file or directory
+ln: failed to create symbolic link '/rpm-4.17.0/tests/rpmtests.dir/265/testing/opt/foo': No such file or directory
--- -   1970-01-01 00:00:34.350860611 +0000
+++ /rpm-4.17.0/tests/rpmtests.dir/at-groups/265/stdout 1970-01-01 00:00:34.339999986 +0000
```

Full verbose log:

```
# ./rpmtests -v -k "directory replaced with a directory symlink" 
## ---------------------- ##
## rpm 4.17.0 test suite. ##
## ---------------------- ##
[   31.915580] Under-voltage detected! (0x00050005)
265. rpmverify.at:63: testing directory replaced with a directory symlink ...
./rpmverify.at:65:


if ! [ -d testing/ ]; then
    cp -aP "${RPMTEST}" .
    chmod -R u+w testing/
    mkdir -p testing/build
    ln -s ../data/SOURCES testing/build/
fi
export RPMTEST="${PWD}/testing"
export TOPDIR="${RPMTEST}/build"
export HOME="${RPMTEST}"

rm -rf "${RPMTEST}"`rpm --eval '%_dbpath'`/*
runroot rpm --initdb

tf="${RPMTEST}"/opt/foo
rm -rf "${RPMTEST}"/opt/*

runroot rpmbuild --quiet -bb \
        --define "ver 1.0" \
        --define "filetype datadir" \
        --define "filedata README1" \
        --define "user $(id -u -n)" \
        --define "grp $(id -g -n)" \
          /data/SPECS/replacetest.spec

runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
mv "${RPMTEST}"/opt/foo "${RPMTEST}"/opt/was
ln -s was "${RPMTEST}"/opt/foo
runroot rpm -Vv replacetest

[   32.920666] random: rpmdb: uninitialized urandom read (256 bytes read)
--- /dev/null   1970-01-01 00:00:00.189999999 +0000
+++ /rpm-4.17.0/tests/rpmtests.dir/at-groups/265/stderr 1970-01-01 00:00:34.219999986 +0000
@@ -0,0 +1,5 @@
+error: File not found: /build/BUILDROOT/replacetest-1.0-1.%{_arch}/opt/*
+    File not found: /build/BUILDROOT/replacetest-1.0-1.%{_arch}/opt/*
+error: open of /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm failed: No such file or directory
+mv: cannot stat '/rpm-4.17.0/tests/rpmtests.dir/265/testing/opt/foo': No such file or directory
+ln: failed to create symbolic link '/rpm-4.17.0/tests/rpmtests.dir/265/testing/opt/foo': No such file or directory
--- -   1970-01-01 00:00:34.350860611 +0000
+++ /rpm-4.17.0/tests/rpmtests.dir/at-groups/265/stdout 1970-01-01 00:00:34.339999986 +0000
@@ -1,5 +1,2 @@
-.........    /opt/foo
-.........    /opt/foo/README1
-.........    /opt/goo
-.........    /opt/zoo
+package replacetest is not installed
 
./rpmverify.at:65: exit code was 1, expected 0
265. rpmverify.at:63:  FAILED (rpmverify.at:65)
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2106
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2106 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220623/7a3cdb58/attachment.html>


More information about the Rpm-maint mailing list