From e7b90c18e48635181054b29c3cb71281c1e27ade Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Tue, 15 Mar 2016 15:11:06 +0100 Subject: [PATCH] Experimental ctbin unit test. --- test/test_ctbin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_ctbin.py b/test/test_ctbin.py index 174907d..95abfbf 100755 --- a/test/test_ctbin.py +++ b/test/test_ctbin.py @@ -68,9 +68,10 @@ class Test(gammalib.GPythonTestSuite): """ Test ctbin on the command line. """ - # Set ctbin tool - ctbin = "../src/ctbin/ctbin" - if os.system("type "+ctbin+" &>/dev/null") != 0: + # Kluge to set the command (installed version has no README file) + if os.path.isfile("README"): + ctbin = "../src/ctbin/ctbin" + else: ctbin = "ctbin" # Setup ctbin command -- libgit2 0.21.4