summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2018-12-03 14:10:05 +0000
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2018-12-04 09:29:14 +0000
commit6bf882260ad4a2755102390db5ba96a8aed3c42a (patch)
tree7de5939e0b4c5a2f5383fd61eb58fa14ae2d33c3
parent51ae2b5f5ce2ed190920d44b994b7027cda4c64a (diff)
ms_driver: Do the existance check with the path
Change the existance test to use the full path and not just the binary name. Change-Id: Ibe28514df03efb7c302ac30411761a8d1a6dcf5d
-rw-r--r--src/osmo_gsm_tester/ms_driver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/ms_driver.py b/src/osmo_gsm_tester/ms_driver.py
index b29859b..bc1cce9 100644
--- a/src/osmo_gsm_tester/ms_driver.py
+++ b/src/osmo_gsm_tester/ms_driver.py
@@ -93,7 +93,7 @@ class MsDriver(log.Origin):
def check_and_return_binary(name):
"""Checks the binary exists and returns the path."""
binary = inst.child('bin', name)
- if not os.path.isfile(name):
+ if not os.path.isfile(binary):
raise RuntimeError('Binary missing: %r' % binary)
return binary