From b4929d6ac8a713b7f6e68a10b31245dac76d59c5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20R=C3=BC=C3=9Fmann?= <p.ruessmann@fz-juelich.de>
Date: Wed, 18 Aug 2021 09:53:58 +0200
Subject: [PATCH] Verbose test run for KKRnano

---
 source/KKRnano/regtests/tests.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/source/KKRnano/regtests/tests.py b/source/KKRnano/regtests/tests.py
index 79b558728..402948803 100755
--- a/source/KKRnano/regtests/tests.py
+++ b/source/KKRnano/regtests/tests.py
@@ -21,12 +21,14 @@ ShowMD5 = True
 AllMPIs = 1 # 1=Yes, 0=No
 HighLmax = True
 testNocoSOC = True
-verbose = False
+verbose = True
 MPIEXEC = 'mpirun' # 'srun'
 
 def run_it(cmd):
     """Run cmd, suppressing output. Returns output from stdout and exit code"""
     start_time = time.time()
+    if verbose:
+        print 'start running comman "{0}" at {1}'.format(cmd, start_time)
     proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, close_fds=True, preexec_fn=os.setsid, shell=True)
     out, err = proc.communicate()
     end_time = time.time()
@@ -48,6 +50,7 @@ def KKRnano(inputdir, nranks=DEFAULT_nranks, nthreads=DEFAULT_nthreads, solver=D
     """Run KKR-calculation with input from 'inputdir' and returns the total energy"""
     if verbose:
         print "start KKR for", inputdir, "with  lmax=",lmax, ", solver=",solver, ", nthreads=",nthreads, "nranks=",nranks
+        print 'test dir:', TESTDIR
     out, err, tim = run_it("./clearfiles.sh")
 
     global ShowMD5
-- 
GitLab