Commit e7b90c18e48635181054b29c3cb71281c1e27ade
1 parent
ed6b9d01
Experimental ctbin unit test.
Showing
1 changed file
with
4 additions
and
3 deletions
test/test_ctbin.py
| @@ -68,9 +68,10 @@ class Test(gammalib.GPythonTestSuite): | @@ -68,9 +68,10 @@ class Test(gammalib.GPythonTestSuite): | ||
| 68 | """ | 68 | """ |
| 69 | Test ctbin on the command line. | 69 | Test ctbin on the command line. |
| 70 | """ | 70 | """ |
| 71 | - # Set ctbin tool | ||
| 72 | - ctbin = "../src/ctbin/ctbin" | ||
| 73 | - if os.system("type "+ctbin+" &>/dev/null") != 0: | 71 | + # Kluge to set the command (installed version has no README file) |
| 72 | + if os.path.isfile("README"): | ||
| 73 | + ctbin = "../src/ctbin/ctbin" | ||
| 74 | + else: | ||
| 74 | ctbin = "ctbin" | 75 | ctbin = "ctbin" |
| 75 | 76 | ||
| 76 | # Setup ctbin command | 77 | # Setup ctbin command |