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

master
Christopher J. Morrone 2012-01-13 13:40:03 -08:00
parent d35d9616d7
commit 0665dea6cb
1 changed files with 6 additions and 0 deletions

View File

@ -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) {