TEST: Allow --info to work when --list is used

iscsi-test --list --info
thus lists both all the major tests as well as all sub-tests
This commit is contained in:
Ronnie Sahlberg
2012-07-10 17:27:24 +10:00
parent 213918a2f3
commit f2a5ccb4f5

View File

@@ -267,6 +267,9 @@ int main(int argc, const char *argv[])
if (list_tests != 0) {
for (test = &tests[0]; test->name; test++) {
printf("%s\n", test->name);
if (show_info) {
test->test(initiator, url, data_loss, show_info);
}
}
exit(0);
}