(self)
| 495 | |
| 496 | @common.skipIfWindows |
| 497 | def test_journald_clean(self): |
| 498 | if not exe_exists('journalctl'): |
| 499 | self.assertRaises(RuntimeError, journald_clean) |
| 500 | else: |
| 501 | try: |
| 502 | journald_clean() |
| 503 | except RuntimeError as rte: |
| 504 | # On my system as a regular user, this succeeds. |
| 505 | # On Travis running Trusty, this worked. |
| 506 | # On Travis running Xenial, there is a permissions error. |
| 507 | if common.have_root(): |
| 508 | raise rte |
| 509 | |
| 510 | def test_journald_regex(self): |
| 511 | """Test the regex for journald_clean()""" |
nothing calls this directly
no test coverage detected