From ed6b9d012880259ab54815ca070e1afbe813e2fd Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Tue, 15 Mar 2016 15:04:32 +0100 Subject: [PATCH] Still experimental ctbin test. --- test/test_ctbin.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/test/test_ctbin.py b/test/test_ctbin.py index fd7f956..174907d 100755 --- a/test/test_ctbin.py +++ b/test/test_ctbin.py @@ -69,21 +69,20 @@ class Test(gammalib.GPythonTestSuite): Test ctbin on the command line. """ # Set ctbin tool - noout = " &>/dev/null" ctbin = "../src/ctbin/ctbin" - if os.system("type "+ctbin+noout) != 0: + if os.system("type "+ctbin+" &>/dev/null") != 0: ctbin = "ctbin" - + # Setup ctbin command cmd = ctbin+' inobs="'+self._events_name+'"'+ \ ' outcube="cntmap_cmd1.fits"'+\ ' emin=0.1 emax=100.0 enumbins=20 ebinalg="LOG"'+ \ ' nxpix=200 nypix=200 binsz=0.02 coordsys="CEL"'+ \ - ' xref=83.63 yref=22.01 proj="CAR"'+noout + ' xref=83.63 yref=22.01 proj="CAR"' # Execute ctbin, make sure we catch any exception try: - rc = os.system(cmd) + rc = os.system(cmd+" >/dev/null") except: pass @@ -100,11 +99,11 @@ class Test(gammalib.GPythonTestSuite): ' outcube="cntmap_cmd2.fits"'+\ ' emin=0.1 emax=100.0 enumbins=20 ebinalg="LOG"'+ \ ' nxpix=200 nypix=200 binsz=0.02 coordsys="CEL"'+ \ - ' xref=83.63 yref=22.01 proj="CAR"'+noout + ' xref=83.63 yref=22.01 proj="CAR"' # Execute ctbin, make sure we catch any exception try: - rc = os.system(cmd) + rc = os.system(cmd+" >/dev/null") except: pass -- libgit2 0.21.4