From 6bf882260ad4a2755102390db5ba96a8aed3c42a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 3 Dec 2018 14:10:05 +0000 Subject: 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 --- src/osmo_gsm_tester/ms_driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3