feat: Authentication failure doesn't count for --one-off. (#877)
Fixes #864.
Этот коммит содержится в:
родитель
2679640c0f
Коммит
fd46367fc4
@ -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,9 +157,14 @@ 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)) {
|
||||||
|
/* Authentication failure doesn't count for 1-off test */
|
||||||
|
if (rc < 0 && i_errno == IEAUTHTEST) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
iperf_delete_pidfile(test);
|
iperf_delete_pidfile(test);
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user