Holger Freyther has uploaded this change for review. ( 
https://gerrit.osmocom.org/12103


Change subject: ms_driver: Do the existance check with the path
......................................................................

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
---
M src/osmo_gsm_tester/ms_driver.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester 
refs/changes/03/12103/1

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 @@
         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


--
To view, visit https://gerrit.osmocom.org/12103
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibe28514df03efb7c302ac30411761a8d1a6dcf5d
Gerrit-Change-Number: 12103
Gerrit-PatchSet: 1
Gerrit-Owner: Holger Freyther <[email protected]>

Reply via email to