# Note

Currently facing a problem with dh_auto_test: while running test w/
avocado-framework.

Avocado is not packaged in Ubuntu/Debian, and requires to be installed
via 'pip3 install avocado-framework' which doesn't seem to be accepted
by the builder.

Tried severals scenarios such as:

# d/rules:
override_dh_auto_test:
        pip3 install avocado-framework
        export PYTHONPATH=tests/
        avocado run -t stageone tests/{cleaner,collect,report,vendor}_tests

but got the following error at build time from my PPA:

debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
pip3 install avocado-framework
WARNING: The directory '/sbuild-nonexistent/.cache/pip' or its parent directory 
is not owned or is not writable by the current user. The cache has been 
disabled. Check the permissions and owner of that directory. If executing pip 
with sudo, you may want sudo's -H flag.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError('<urllib3.connection.HTTPSConnection object at 
0x7f5a4cd153d0>: Failed to establish a new connection: [Errno -2] Name or 
service not known')': /simple/avocado-framework/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError('<urllib3.connection.HTTPSConnection object at 
0x7f5a4cc68cd0>: Failed to establish a new connection: [Errno -2] Name or 
service not known')': /simple/avocado-framework/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError('<urllib3.connection.HTTPSConnection object at 
0x7f5a4cc680a0>: Failed to establish a new connection: [Errno -2] Name or 
service not known')': /simple/avocado-framework/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError('<urllib3.connection.HTTPSConnection object at 
0x7f5a4cc685b0>: Failed to establish a new connection: [Errno -2] Name or 
service not known')': /simple/avocado-framework/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError('<urllib3.connection.HTTPSConnection object at 
0x7f5a4cc68760>: Failed to establish a new connection: [Errno -2] Name or 
service not known')': /simple/avocado-framework/
ERROR: Could not find a version that satisfies the requirement avocado-framework
ERROR: No matching distribution found for avocado-framework

Still under investigation.

I might have no other option but to package avocado-framework and add it
as a Build-Depends, as I'm not a fan of disabling dh_auto_test: .

- Eric

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1941745

Title:
  [FFe][sync][sru] sos upstream 4.2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sosreport/+bug/1941745/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to