Change in osmo-gsm-tester[master]: ms_driver: Do the existance check with the path

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Holger Freyther gerrit-no-reply at lists.osmocom.org
Tue Dec 4 13:33:59 UTC 2018


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 <holger at freyther.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181204/b32e992e/attachment.htm>


More information about the gerrit-log mailing list