1
1

feat: Authentication failure doesn't count for --one-off. (#877)

Fixes #864.
Этот коммит содержится в:
Bruce A. Mah 2019-06-05 15:54:22 -07:00 коммит произвёл GitHub
родитель 2679640c0f
Коммит fd46367fc4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -1,5 +1,5 @@
/* /*
* iperf, Copyright (c) 2014, 2015, 2017, The Regents of the University of * iperf, Copyright (c) 2014, 2015, 2017, 2019, The Regents of the University of
* California, through Lawrence Berkeley National Laboratory (subject * California, through Lawrence Berkeley National Laboratory (subject
* to receipt of any required approvals from the U.S. Dept. of * to receipt of any required approvals from the U.S. Dept. of
* Energy). All rights reserved. * Energy). All rights reserved.
@ -157,8 +157,13 @@ run(struct iperf_test *test)
} }
} }
iperf_reset_test(test); iperf_reset_test(test);
if (iperf_get_test_one_off(test)) if (iperf_get_test_one_off(test)) {
break; /* Authentication failure doesn't count for 1-off test */
if (rc < 0 && i_errno == IEAUTHTEST) {
continue;
}
break;
}
} }
iperf_delete_pidfile(test); iperf_delete_pidfile(test);
break; break;