From 0665dea6cb06bca0472d5806d6500dc47199f44b Mon Sep 17 00:00:00 2001 From: "Christopher J. Morrone" Date: Fri, 13 Jan 2012 13:40:03 -0800 Subject: [PATCH] Fix script handling when there are back-to-back RUN lines. --- src/parse_options.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/parse_options.c b/src/parse_options.c index 839011e..88b3335 100644 --- a/src/parse_options.c +++ b/src/parse_options.c @@ -362,6 +362,12 @@ IOR_test_t *ReadConfigScript(char *scriptName) AllocResults(tail); break; } else if (contains_only(linebuf, "run")) { + if (runflag) { + /* previous line was a "run" as well + create duplicate test */ + tail->next = CreateTest(&tail->params, test_num++); + tail = tail->next; + } AllocResults(tail); runflag = 1; } else if (runflag) {