Sven Vermeulen patch to fix sepolgen test code
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This patch looks good to me. acked.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlJqyjwACgkQrlYvE4MpobPOrACfXpHHSoNEDHytIY+7ium4lYFD OYMAoL4Ssd2HQadUHpviHTxsK96av8Go
=GExO
-----END PGP SIGNATURE-----
Quoted 2 lines · Daniel J Walsh
This patch looks good to me. acked.
This reverts the fix I just applied, and causes make test to fail in sepolgen for me. Do you see a different result? Also, cc me.
Current selinux master:
cd selinux
git checkout master
git pull
cd sepolgen
make test
$ make test make -C tests test make[1]: Entering directory `/home/sds/selinux/sepolgen/tests' python run-tests.py ........................................... ---------------------------------------------------------------------- Ran 43 tests in 0.811s
OK
make[1]: Leaving directory `/home/sds/selinux/sepolgen/tests'
With this patch:
make -C tests test
make[1]: Entering directory `/home/sds/selinux/sepolgen/tests' python run-tests.py ............................F..............
======================================================================
FAIL: test_append (test_matching.TestMatchList)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sds/selinux/sepolgen/tests/test_matching.py", line 54, intest_append
self.assertEqual(len(ml), 2)
AssertionError: 1 != 2
----------------------------------------------------------------------
Ran 43 tests in 0.796s
FAILED (failures=1)
make[1]: *** [test] Error 1
make[1]: Leaving directory `/home/sds/selinux/sepolgen/tests'
make: *** [test] Error 2
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 35 lines · Stephen Smalley
Quoted 2 lines · Daniel J Walsh
This patch looks good to me. acked.
This reverts the fix I just applied, and causes make test to fail in sepolgen for me. Do you see a different result? Also, cc me.
Current selinux master: cd selinux git checkout master git pull cd sepolgen make test $ make test make -C tests test make[1]: Entering directory `/home/sds/selinux/sepolgen/tests' python
run-tests.py
..........................................
---------------------------------------------------------------------- Ran 43 tests in 0.811sOK make[1]: Leaving directory `/home/sds/selinux/sepolgen/tests'
With this patch: make -C tests test make[1]: Entering directory `/home/sds/selinux/sepolgen/tests' python
run-tests.py...........................F..............
======================================================================
FAIL:test_append(test_matching.TestMatchList)
----------------------------------------------------------------------
Traceback (most recent call last): File "/home/sds/selinux/sepolgen/tests/test_matching.py", line 54, intest_appendself.assertEqual(len(ml), 2)AssertionError: 1 != 2---------------------------------------------------------------------- Ran 43 tests in 0.796s
FAILED (failures=1) make[1]: *** [test] Error 1 make[1]: Leaving directory `/home/sds/selinux/sepolgen/tests' make: *** [test] Error 2
Quoted 6 lines
-- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
I agree the value should be 1 not 2. Need to drop patch. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlJuagEACgkQrlYvE4MpobPrcwCghA4N8gmCWO2B1lpFIpoZtTup dRAAnRYzJTYM1bunKIz84G1U4bf1dcHU
=tFPq
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.