[Bug 1929992] Review Request: python-wcmatch - Wildcard/glob file name matcher

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1929992



--- Comment #2 from Karolina Surma <ksurma@xxxxxxxxxx> ---
Hi Parag,

When using mock to build the package, one of the tests fails, resulting in
failing the build.
The test will fail each time user name is different than their home directory,
which is case both mock and koji. 
The problematic test:
https://github.com/facelessuser/wcmatch/blob/master/tests/test_glob.py#L1475

The koji failed build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=63406570
See the %check traceback in build.log:

Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.09HkyO
+ umask 022
+ cd /builddir/build/BUILD
+ cd wcmatch-8.1.1
+ /usr/bin/python3 setup.py test
/builddir/build/BUILD/wcmatch-8.1.1/setup.py:6: DeprecationWarning: the imp
module is deprecated in favour of importlib; see the module's documentation for
alternative uses
  import imp
running test
WARNING: Testing via this command is deprecated and will be removed in a future
version. Users looking for a generic test entry point independent of test
runner are encouraged to use tox.
running egg_info
writing wcmatch.egg-info/PKG-INFO
writing dependency_links to wcmatch.egg-info/dependency_links.txt
writing requirements to wcmatch.egg-info/requires.txt
writing top-level names to wcmatch.egg-info/top_level.txt
reading manifest file 'wcmatch.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.png' under directory 'docs/src/markdown'
warning: no files found matching '*.gif' under directory 'docs/src/markdown'
warning: no files found matching '*.html' under directory 'docs/src/markdown'
warning: no files found matching '*.js' under directory 'docs/theme'
warning: no files found matching '*.css' under directory 'docs/theme'
warning: no previously-included files matching '*' found under directory 'site'
writing manifest file 'wcmatch.egg-info/SOURCES.txt'
running build_ext
test_limit_filter (tests.test_fnmatch.TestExpansionLimit)
Test expansion limit of `filter`. ... ok
test_limit_fnmatch (tests.test_fnmatch.TestExpansionLimit)
Test expansion limit of `fnmatch`. ... ok
test_limit_translate (tests.test_fnmatch.TestExpansionLimit)
Test expansion limit of `translate`. ... ok
test_escape (tests.test_fnmatch.TestFnMatchEscapes)
Test path escapes. ... ok
test_escape_forced_unix (tests.test_fnmatch.TestFnMatchEscapes)
Test forced windows Unix. ... ok
...
test_tilde_user (tests.test_glob.TestTilde)
Test tilde user cases. ... ERROR


======================================================================
ERROR: test_tilde_user (tests.test_glob.TestTilde)
Test tilde user cases.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/wcmatch-8.1.1/tests/test_glob.py", line 1449, in
test_tilde_user
    files = os.listdir(os.path.expanduser('~{}'.format(user)))
FileNotFoundError: [Errno 2] No such file or directory: '~builddir'

----------------------------------------------------------------------
Ran 164 tests in 0.113s

FAILED (errors=1, skipped=6)
Test failed: <unittest.runner.TextTestResult run=164 errors=1 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=164 errors=1
failures=0>


RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.09HkyO (%check)
    Bad exit status from /var/tmp/rpm-tmp.09HkyO (%check)
Finish: rpmbuild python-wcmatch-8.1.1-3.fc34.src.rpm
Finish: build phase for python-wcmatch-8.1.1-3.fc34.src.rpm
ERROR: Exception(python-wcmatch-8.1.1-3.fc34.src.rpm)
Config(fedora-rawhide-x86_64) 0 minutes 9 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M b556ebe77fe3400796fae2e22b7041f1 -D
/var/lib/mock/fedora-rawhide-x86_64/root -a -u mockbuild
--capability=cap_ipc_lock --bind=/tmp/mock-resolv.clfu3yyk:/etc/resolv.conf
--bind=/dev/btrfs-control --bind=/dev/loop-control --bind=/dev/loop0
--bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4
--bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8
--bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe
--setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir
--setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin
--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"
--setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=C.UTF-8 --resolv-conf=off
bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps
/builddir/build/SPECS/python-wcmatch.spec


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux