From ea12825f4d4a5c113bab3d41a41e0316f19e811b Mon Sep 17 00:00:00 2001
From: Cristian C Lalescu <Cristian.Lalescu@ds.mpg.de>
Date: Thu, 1 Oct 2015 14:36:39 +0200
Subject: [PATCH] with plain test run single simulation by default

---
 tests/test_base.py  | 2 ++
 tests/test_plain.py | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/tests/test_base.py b/tests/test_base.py
index adf7beb8..73756bed 100755
--- a/tests/test_base.py
+++ b/tests/test_base.py
@@ -56,6 +56,8 @@ parser.add_argument('--wd',
         type = str, dest = 'work_dir', default = 'data')
 parser.add_argument('--precision',
         type = str, dest = 'precision', default = 'single')
+parser.add_argument('--multiplejob',
+        dest = 'multiplejob', action = 'store_true')
 
 def double(opt):
     old_simname = 'N{0:0>3x}'.format(opt.n)
diff --git a/tests/test_plain.py b/tests/test_plain.py
index d633ff7d..d9b48005 100755
--- a/tests/test_plain.py
+++ b/tests/test_plain.py
@@ -26,6 +26,8 @@ def plain(opt):
     opt.work_dir = wd + '/N{0:0>3x}_1'.format(opt.n)
     c0 = launch(opt)
     c0.compute_statistics()
+    if not opt.multiplejob:
+        return None
     opt.work_dir = wd + '/N{0:0>3x}_2'.format(opt.n)
     opt.njobs *= 2
     opt.nsteps /= 2
-- 
GitLab