File 0001-Test-cts-set-default-number-of-iterations-to-1.patch of Package pacemaker.14737

From b83a8beb0c0b7f20485c0b16cde7b087faf6f9f3 Mon Sep 17 00:00:00 2001
From: Aleksei Burlakov <aleksei.burlakov@suse.com>
Date: Wed, 28 Nov 2018 13:00:44 +0100
Subject: [PATCH] Test: cts: set default number of iterations to 1

It is expected that when starting a certain test without parameters it
is run once.
---
 cts/CTSlab.py.in | 2 ++
 1 file changed, 2 insertions(+)

Index: pacemaker-1.1.19+20190116.6b4d32bfe/cts/CTSlab.py
===================================================================
--- pacemaker-1.1.19+20190116.6b4d32bfe.orig/cts/CTSlab.py
+++ pacemaker-1.1.19+20190116.6b4d32bfe/cts/CTSlab.py
@@ -60,6 +60,8 @@ if __name__ == '__main__':
 
     Environment = CtsLab(sys.argv[1:])
     NumIter = Environment["iterations"]
+    if NumIter is None:
+        NumIter = 1
     Tests = []
 
     # Set the signal handler
openSUSE Build Service is sponsored by