Skip to contentSkip to conversation

osstest: reduce FreeBSD install timeouts

PATCH In review Roger Pau Monne 3 participants 3 messages May 29, 2015 – Jun 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 osstest: reduce FreeBSD install timeouts

Only the first block is expected to take longer (because it decompresses the image and writes it to a LVM volume), the remaining commands should execute much faster, so reduce the timeout.

Cc Ian Jackson <[email protected]>
Cc Ian Campbell <[email protected]>

---
I've checked this with the output of OSSTest, and those blocks execute immediately, OSSTest doesn't even report execution times on them:

http://logs.test-lab.xenproject.org/osstest/logs/57419/test-amd64-i386-freebsd10-amd64/9.ts-freebsd-install.log

---
 ts-freebsd-install | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ts-freebsd-install +2 -2
index 0d6eb0c..98dad24 100755
@@ -67,7 +67,7 @@ sub prep () {
             mount -t ufs -o ufstype=ufs2,rw $rootpartition_dev $mnt
 END
 
-    target_cmd_root($ho, <<END, 900);
+    target_cmd_root($ho, <<END, 15);
             mkdir -p $mnt/root/.ssh
             cat <<'ENDKEYS' >$mnt/root/.ssh/authorized_keys
 $authkeys
@@ -75,7 +75,7 @@ ENDKEYS
 
 END
 
-    target_cmd_root($ho, <<END, 900);
+    target_cmd_root($ho, <<END, 30);
             echo 'sshd_enable="YES"' >> $mnt/etc/rc.conf
             echo 'ifconfig_xn0="DHCP"' >> $mnt/etc/rc.conf
             echo 'PermitRootLogin yes' >> $mnt/etc/ssh/sshd_config
Signature · 7 lines
1.9.5 (Apple Git-50.3)


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Roger Pau Monne

Only the first block is expected to take longer (because it decompresses the image and writes it to a LVM volume), the remaining commands should execute much faster, so reduce the timeout.

Cc Ian Jackson <[email protected]>
Cc Ian Campbell <[email protected]>

Ian.

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

Acked-by on v1 1/1
#2 lore raw
In reply to Roger Pau Monne

Roger Pau Monne writes ("[PATCH] osstest: reduce FreeBSD install timeouts"):

Quoted 3 lines

Only the first block is expected to take longer (because it decompresses the image and writes it to a LVM volume), the remaining commands should execute much faster, so reduce the timeout.