diff options
author | RĂ©mi Duraffort <remi.duraffort@linaro.org> | 2018-07-23 14:00:19 +0200 |
---|---|---|
committer | Neil Williams <neil.williams@linaro.org> | 2018-07-24 09:06:51 +0000 |
commit | 953df9325ae9e8783a141aa7f87686019ef4b938 (patch) | |
tree | cd335c1b94589a53d434e30a5fd18338659dc0cc /lava_dispatcher/test | |
parent | baf61b4651593964b5cbc7c56cea6154c07c9e8a (diff) |
Raise a JobError when a cmd output is empty
Change-Id: I1a579ea602c394b0da5489f68b238d5e0984b33d
Diffstat (limited to 'lava_dispatcher/test')
-rw-r--r-- | lava_dispatcher/test/test_devices.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lava_dispatcher/test/test_devices.py b/lava_dispatcher/test/test_devices.py index 5d3914a23..659d8b42e 100644 --- a/lava_dispatcher/test/test_devices.py +++ b/lava_dispatcher/test/test_devices.py @@ -220,8 +220,7 @@ class TestCommand(StdoutTestCase): def test_silent(self): fake = FakeAction() command = 'true' - log = fake.run_command(command.split(' ')) - self.assertEqual(log, '') + self.assertRaises(JobError, fake.run_command, command.split(' ')) self.assertEqual([], fake.errors) def test_allow_silent(self): |