mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
tests: make timeouts longer
Add more time for tests, since debug kernels are getting slower... and we add more and more tests. However many test should be shortened to avoid testing disk-perfomance and focus on lvm functionality... (Often we should probably test with inactive volumes when we check metadata operation of lvm2) We may need to support option for 'DEEP' longer testing. Also something like LVM_TEST_TIMEOUT_FACTOR might be useful though it would be much better if test suite could approximete from system perfomance test lenght...
This commit is contained in:
parent
9f9a196dc0
commit
9f68aadb74
@ -750,7 +750,7 @@ udev_wait() {
|
||||
# wait_for_sync <VG/LV>
|
||||
wait_for_sync() {
|
||||
local i
|
||||
for i in {1..500} ; do
|
||||
for i in {1..3000} ; do
|
||||
check in_sync $1 $2 && return
|
||||
sleep .2
|
||||
done
|
||||
|
@ -585,8 +585,8 @@ int main(int argc, char **argv) {
|
||||
/* run the tests */
|
||||
for (i = 1; !die && i < argc; ++i) {
|
||||
run(i, argv[i]);
|
||||
if ( time(NULL) - harness_start > 3 * 3600 ) {
|
||||
printf("3 hours passed, giving up...\n");
|
||||
if ( time(NULL) - harness_start > 48 * 360 ) { /* 04:48 */
|
||||
printf("Nearly 5 hours passed, giving up...\n");
|
||||
die = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user