cic-eth: Add sanity checks for emergency shutdown / liveness tests

This commit is contained in:
Louis Holbrook
2021-04-23 21:02:51 +00:00
parent 6b6ec8659b
commit 3129a78e06
23 changed files with 165 additions and 37 deletions

View File

@@ -116,7 +116,9 @@ class TestImports(unittest.TestCase):
def test_args(self):
checks = ['tests.imports.import_args']
liveness.linux.load(checks, namespace=self.unit, rundir=self.run_dir, args=['foo'], kwargs={'bar': 42})
aargs=['foo']
kwaargs={'bar': 42}
liveness.linux.load(checks, self.unit, self.run_dir, *aargs, **kwaargs)
f = open(self.pid_path, 'r')
r = f.read()
f.close()