Skip to contentSkip to conversation

Revert "timeouts: Call target_adjust_timeout for all build commands"

PATCH New Ian Jackson 1 participant 2 messages Jan 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Revert "timeouts: Call target_adjust_timeout for all build commands"

We actually do this already in tcmd, so this extra call adjusts it twice.

This reverts commit 21d141d98ecb07d30b839829da9837af80f80728.

---
 Osstest/TestSupport.pm | 2 --
 1 file changed, 2 deletions(-)
Osstest/TestSupport.pm +0 -2
index 3123b40..3308193 100644
@@ -629,8 +629,6 @@ END
         export http_proxy
 END
 
-    target_adjust_timeout($ho, \$timeout);
-
     target_cmd($ho, <<END.$distcc.$httpproxy.<<END.$script, $timeout);
 	set -xe
         LC_ALL=C; export LC_ALL
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw

PATCH 2/2 timeouts: Print slightly better message

---
 Osstest/TestSupport.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Osstest/TestSupport.pm +2 -1
index 3308193..6ca8076 100644
@@ -339,8 +339,9 @@ sub target_adjust_timeout ($$) {
 	my ($factor, $what) = @_;
 	return unless defined $factor;
 	return if $factor==1;
-	logm("(adjusting timeout by factor $factor, from $what)");
 	$$timeoutref *= $factor;
+	logm("(adjusting timeout by factor $factor to $$timeoutref,".
+             " due to $what)");
     };
     if ($ho->{Guest}) {
 	my $context = $ho->{TimeoutContext} // 'general';
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel