Fix script handling when there are back-to-back RUN lines.
parent
d35d9616d7
commit
0665dea6cb
|
@ -362,6 +362,12 @@ IOR_test_t *ReadConfigScript(char *scriptName)
|
||||||
AllocResults(tail);
|
AllocResults(tail);
|
||||||
break;
|
break;
|
||||||
} else if (contains_only(linebuf, "run")) {
|
} 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);
|
AllocResults(tail);
|
||||||
runflag = 1;
|
runflag = 1;
|
||||||
} else if (runflag) {
|
} else if (runflag) {
|
||||||
|
|
Loading…
Reference in New Issue