diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2015-01-21 10:21:08 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2015-01-21 10:22:10 +0100 |
commit | eb89bc1d25086a1b4117683697f35c1398a98c02 (patch) | |
tree | 8439ec28ff62f783c6f9f9ae3ccb820a1466c87b /test | |
parent | systemd-sysv-generator test: don't parse symlinks (diff) | |
download | systemd-eb89bc1d25086a1b4117683697f35c1398a98c02.tar.gz systemd-eb89bc1d25086a1b4117683697f35c1398a98c02.tar.bz2 systemd-eb89bc1d25086a1b4117683697f35c1398a98c02.zip |
systemd-sysv-generator test: fix enabled check
Fix hardcoded "foo.service", test for the actual unit parameter.
Diffstat (limited to 'test')
-rw-r--r-- | test/sysv-generator-test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sysv-generator-test.py b/test/sysv-generator-test.py index 492e99d83..2a84f9fca 100644 --- a/test/sysv-generator-test.py +++ b/test/sysv-generator-test.py @@ -133,11 +133,11 @@ class SysvGeneratorTest(unittest.TestCase): # should be enabled for runlevel in all_runlevels: - link = os.path.join(self.out_dir, 'runlevel%i.target.wants' % runlevel, 'foo.service') + link = os.path.join(self.out_dir, 'runlevel%i.target.wants' % runlevel, unit) if runlevel in runlevels: target = os.readlink(link) self.assertTrue(os.path.exists(target)) - self.assertEqual(os.path.basename(target), 'foo.service') + self.assertEqual(os.path.basename(target), unit) else: self.assertFalse(os.path.exists(link), '%s unexpectedly exists' % link) |