chiark / gitweb /
WIP better reporting for DC-running
authorIan Jackson <ian@liberator>
Mon, 16 Jul 2007 14:20:25 +0000 (15:20 +0100)
committerIan Jackson <ian@liberator>
Mon, 16 Jul 2007 14:20:25 +0000 (15:20 +0100)
debian/changelog
runner/adt-run
runner/adt-testreport-onepackage

index cb9865fbde70ed368e0f082ce26e78ff0ad015a8..d85ced1f5d1768a708109c8ed72270323a5b9e25 100644 (file)
@@ -1,3 +1,9 @@
+autopkgtest (1.0.3) unstable; urgency=low
+
+  * WIP better reporting for DC-running
+
+ --
+
 autopkgtest (1.0.2) unstable; urgency=low
 
   * xenlvm command-line settings properly override config file
index 25529884af9a0676379b21d71749214b7ca95c3a..1274da83847724d640ba691df3a02e683af04772 100755 (executable)
@@ -188,7 +188,9 @@ def mkdir_okexist(pathname, mode=02755):
 
 def rmtree(what, pathname):
        debug('/ %s rmtree %s' % (what, pathname), 2)
-       shutil.rmtree(pathname)
+       try: shutil.rmtree(pathname)
+       except (IOError,OSError), oe:
+               if oe.errno != errno.EEXIST: raise
 
 def debug_subprocess(what, cmdl=None, script=None):
        o = '$ '+what+':'
@@ -891,6 +893,7 @@ class Testbed:
        if xdump is not None and 'execute-debug' in tb.caps: cmdl += [xdump]
        if tmpdir is not None: cmdl.append('env=TMPDIR=%s' % tmpdir)
        if kind=='install': cmdl.append('env=DEBIAN_FRONTEND=noninteractive')
+#      cmdl.append('env=LANG=C')
 
        rc = tb.commandr1('execute', cmdl)
        try: rc = int(rc)
index 9b4d83c063a40fc63a551dd3914d566c87cd82d6..122abfb552a6e26d7670784894b9a63ed931c53c 100755 (executable)
@@ -235,6 +235,7 @@ printf >&3 "%s " $rc
 
 ourx=0
 upload=true
+: ${upload_if_notests:=false}
 extras=''
 
 case "$rc" in
@@ -243,7 +244,7 @@ case "$rc" in
 2)     summary='OK (some skipped)';            email=''
                                        upload=$upload_if_ok            ;;
 8)     summary='package declares no tests';    email=''
-                                       upload=false; extras='nt'       ;;
+                               upload=$upload_if_notests; extras='nt'  ;;
 4|6)   summary='test(s) failed!';      email="$maintainer_email"       ;;
 12)    summary='erroneous package!';   email="$maintainer_email"       ;;
 16)    summary='testbed failed!';      email="administrator_email"     ;;
@@ -254,6 +255,7 @@ progress "RESULTS $summary"
 
 if $upload; then
        progress "bundling"
+       printf "\n%s\n" "$summary" >>"$tmp"/_summary
        ln "$tmp"/_summary "$tp"/summary
 
        for odir in tmp out; do