Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465846 - <dev-python/sepolgen-1.1.9-r2 can't test due to wrong path
Summary: <dev-python/sepolgen-1.1.9-r2 can't test due to wrong path
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-14 04:19 UTC by Sean Santos
Modified: 2013-06-16 18:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,4.15 KB, text/plain)
2013-04-14 04:19 UTC, Sean Santos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Santos 2013-04-14 04:19:33 UTC
Created attachment 345512 [details]
build.log

Build log is attached. The error comes from this section of python_execute_function:

        if [[ "${separate_build_dirs}" == "1" ]]; then
            if [[ -n "${source_dir}" ]]; then
                export BUILDDIR="${S}/${source_dir}-${PYTHON_ABI}";
            else
                export BUILDDIR="${S}-${PYTHON_ABI}";
            fi;
            pushd "${BUILDDIR}" > /dev/null || die "pushd failed";
        else
            export BUILDDIR="${S}";
        fi;

With FEATURES="keepwork" I see that there is a directory called "/var/tmp/portage/dev-python/sepolgen-1.1.8-r1/work/sepolgen-1.1.8", but no python-version-specific one.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2013-05-11 18:42:21 UTC
Okay, fixed test part, got two test failures I need to sort out:

======================================================================
ERROR: test_export (test_interfaces.TestInterfaceSet)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/portage/portage/dev-python/sepolgen-1.1.9-r1/work/sepolgen-1.1.9-2.7/tests/test_interfaces.py", line 263, in test_export
    i.add_headers(h)
  File "../src/./sepolgen/interfaces.py", line 412, in add_headers
    self.add(i, attributes)
  File "../src/./sepolgen/interfaces.py", line 407, in add
    ifv = InterfaceVector(interface, attributes)
  File "../src/./sepolgen/interfaces.py", line 257, in __init__
    self.from_interface(interface, attributes)
  File "../src/./sepolgen/interfaces.py", line 279, in from_interface
    if not attributes.attributes.has_key(attr):
AttributeError: 'dict' object has no attribute 'attributes'

======================================================================
FAIL: test_append (test_matching.TestMatchList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/portage/portage/dev-python/sepolgen-1.1.9-r1/work/sepolgen-1.1.9-2.7/tests/test_matching.py", line 94, in test_append
    self.assertEqual(len(ml), 1)
AssertionError: 2 != 1


I have fixes for both prepared, but want to check with upstream if those are indeed okay.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2013-05-18 18:06:14 UTC
sepolgen-1.1.9-r2 is in the tree with the fixes. Didn't get any reply from the mailinglist (upstream) so I'm hoping the fixes are correct (couldn't see any regressions otherwise).
Comment 3 Sean Santos 2013-05-20 01:15:31 UTC
This works for me now. One of the tests fails, but I'll make a separate bug for that.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2013-06-16 18:24:07 UTC
In main tree, stable (the test that fails because the sepolgen configuration file isn't there is not resolved yet, see other bug for that)