ubuntu-server-iso-testing-dev team mailing list archive
-
ubuntu-server-iso-testing-dev team
-
Mailing list archive
-
Message #00131
lp:~ubuntu-server-iso-testing-dev/ubuntu-server-iso-testing/no-di-log into lp:ubuntu-server-iso-testing
C de-Avillez has proposed merging lp:~ubuntu-server-iso-testing-dev/ubuntu-server-iso-testing/no-di-log into lp:ubuntu-server-iso-testing.
Requested reviews:
Ubuntu Server Iso Testing Developers (ubuntu-server-iso-testing-dev)
For more details, see:
https://code.launchpad.net/~ubuntu-server-iso-testing-dev/ubuntu-server-iso-testing/no-di-log/+merge/72460
Add support for cancelling a run if no D-I log is captured in (initial default) 200 seconds
--
https://code.launchpad.net/~ubuntu-server-iso-testing-dev/ubuntu-server-iso-testing/no-di-log/+merge/72460
Your team Ubuntu Server Iso Testing Developers is requested to review the proposed merge of lp:~ubuntu-server-iso-testing-dev/ubuntu-server-iso-testing/no-di-log into lp:ubuntu-server-iso-testing.
=== modified file 'run-test.py'
--- run-test.py 2011-08-19 20:43:16 +0000
+++ run-test.py 2011-08-22 16:42:35 +0000
@@ -591,15 +591,27 @@
subprocess.check_call(cmd)
start_time = time.time()
+## support for cancelling runs where the debian-installer syslog is not
+## seen in 200 seconds (wait_di_syslog * SLEEP_TIME)
+seen_di_syslog = False
+iter_wait_di_syslog = 0
+wait_di_syslog = 20
while True:
if l_ipAddress is None:
l_ipAddress = get_ipAddress(test['_id'], mac_address)
if l_ipAddress is not None:
- # TODO: compare current and previous syslog lines:
- # if no different for a while, d-i stalled?
l_output = get_diSyslog(test['_id'], l_ipAddress)
logging.debug(l_output)
+ if l_output is None:
+ if not seen_di_syslog:
+ iter_wait_di_syslog += 1
+ if iter_wait_di_syslog == wait_di_syslog:
+ logging_info("Test %s: no debian-installer log seen in %s seconds, cancelling run" % (test['_id'], iter_wait_di_syslog*SLEEP_TIME))
+ end_VM(test['_id'])
+ else:
+ seen_di_syslog = True
+
if check_for_errors(l_output):
logging.info("Test %s: debian-installer reports error" % test['_id'])
end_VM(test['_id'])
Follow ups