diff options
Diffstat (limited to 'test-cli/test/tests')
-rw-r--r-- | test-cli/test/tests/qamper.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test-cli/test/tests/qamper.py b/test-cli/test/tests/qamper.py index b3ab8b1..c611fdb 100644 --- a/test-cli/test/tests/qamper.py +++ b/test-cli/test/tests/qamper.py @@ -27,9 +27,11 @@ class Qamper(unittest.TestCase): self.fail("failed: can not open serial port") return # check if the amperimeter is connected and working + # 2 ATTEMTS if not amp.hello(): - self.fail("failed: can not communicate") - return + if not amp.hello(): + self.fail("failed: can not communicate") + return # get current value (in Amperes) result = amp.getCurrent() # close serial connection |