Permalink
Browse files

Fix script handling when there are back-to-back RUN lines.

  • Loading branch information...
1 parent d35d961 commit 0665dea6cb06bca0472d5806d6500dc47199f44b @morrone morrone committed Jan 13, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/parse_options.c
View
@@ -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) {

0 comments on commit 0665dea

Please sign in to comment.