Bug 1371443
| Summary: | internal sepolgen testsuite tracebacks | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Dalibor Pospíšil <dapospis> |
| Component: | policycoreutils | Assignee: | Petr Lautrbach <plautrba> |
| Status: | CLOSED ERRATA | QA Contact: | Dalibor Pospíšil <dapospis> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.4 | CC: | dwalsh, lvrabec, mgrepl, mmalik, plautrba, ssekidde |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | policycoreutils-2.5-16.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-01 16:16:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Fixed upstream https://github.com/SELinuxProject/selinux/commit/d10c8b81d4197f645762e28e42acd26a245bbcac Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1883 |
Description of problem: internal test suite stops on traceback Version-Release number of selected component (if applicable): policycoreutils-2.5-8.el7 How reproducible: 100% Steps to Reproduce: 1. rpm -ivh policycoreutils*.src.rpm 2. sed -i 's/^\(make -C sepolgen.*\) all *$/\1 all\n\1 test/' ~/rpmbuild/SPECS/policycoreutils.spec 3. rpmbuild -bc ~/rpmbuild/SPECS/policycoreutils.spec Actual results: <snip> ERROR: test (test_module.TestModuleCompiler) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/rpmbuild/BUILD/selinux/sepolgen-1.2.3/tests/test_module.py", line 28, in test mc.create_module_package("module_compile_test.te", refpolicy=True) File "../src/./sepolgen/module.py", line 175, in create_module_package self.refpol_build(sourcename) File "../src/./sepolgen/module.py", line 189, in refpol_build raise RuntimeError("compilation failed:\n%s" % self.last_output) RuntimeError: compilation failed: make[3]: Entering directory `/root/rpmbuild/BUILD/selinux/sepolgen-1.2.3/tests' Compiling targeted module_compile_test module /usr/bin/checkmodule: Module name foo is different than the output base filename module_compile_test /usr/bin/checkmodule: loading policy configuration from tmp/module_compile_test.tmp make[3]: *** [tmp/module_compile_test.mod] Error 1 make[3]: Leaving directory `/root/rpmbuild/BUILD/selinux/sepolgen-1.2.3/tests' Expected results: pass Additional info: this used to work on policycoreutils-2.2.5-20.el7