Skip to content

make -test fails on Arch #522

@graysky2

Description

@graysky2

It seems that common/configure wants py.test-3 but Arch does not provide that executable.

which: no py.test-3 in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)

We have a package that provides: /usr/bin/py.test and /usr/bin/py.test-3.5

  1. Can you modify common/configure to look for py.test-3.5 or py.test-3 or py.test in the PATH?

  2. The make test still fails when I run it in the clean-chroot per the Arch build standards (but it does work outside in my live environment) Any ideas? Perhaps I am missing a dependency in the chroot that I have in the live environment? I do not know python so the error message is lost on me.

% make test
py.test-3.5 
test/test.sh
============================= test session starts ==============================
platform linux -- Python 3.5.1, pytest-2.8.5, py-1.4.31, pluggy-0.3.1
rootdir: /build/backintime/src/backintime-1.1.12/common, inifile: 
Clean testing directory
Create testing directory
Create testing data
collected 92 items

test/test_applicationinstance.py ..........
test/test_argparser.py ..............
================================================================================
 TEST --> A snapshot have been created 
 SUCCESS --> A snaphshot should have been created 
================================================================================

.......
test/test_configfile.py ................................................
test/test_snapshots.py ..
test/test_tools.py ...F.......

=================================== FAILURES ===================================
________________________ TestTools.test_process_exists _________________________

self = <test.test_tools.TestTools testMethod=test_process_exists>

    def test_process_exists(self):
        ''' Test the function process_exists '''
>       self.assertTrue(tools.process_exists("init") or tools.process_exists("systemd"))
E       AssertionError: False is not true

test/test_tools.py:68: AssertionError
===================== 1 failed, 91 passed in 3.37 seconds ======================
Makefile:561: recipe for target 'unittest' failed
make: *** [unittest] Error 1
make: *** Waiting for unfinished jobs....

================================================================================
 TEST --> No snapshot have been created 
 SUCCESS --> A useless snaphshot have been created 
================================================================================


================================================================================
 TEST --> A snaphshot should have been created 
 SUCCESS --> A snapshot have been created 
================================================================================


================================================================================
Summary integration tests :
--> Successes : 3 - Fails : 0
================================================================================

All tests passed successfully, cleaning testing directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions