xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>
Subject: [OSSTEST PATCH 5/6] TestSupport::broken: Update status of `preparing' jobs
Date: Wed, 21 May 2014 12:42:07 +0100	[thread overview]
Message-ID: <1400672528-16185-5-git-send-email-ian.jackson@eu.citrix.com> (raw)
In-Reply-To: <1400672528-16185-1-git-send-email-ian.jackson@eu.citrix.com>

If the current job is preparing, and we call broken, then we should
update the status to that supplied by broken's caller.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 Osstest/TestSupport.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index e906dff..4187b6c 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -206,7 +206,7 @@ sub broken ($;$) {
         $affected= $dbh_tests->do(<<END, {}, $newst, $flight, $job);
             UPDATE jobs SET status=?
              WHERE flight=? AND job=?
-               AND (status='queued' OR status='running')
+               AND (status='queued' OR status='running' OR status='preparing')
 END
     });
     die "BROKEN: $m; ". ($affected>0 ? "marked $flight.$job $newst"
-- 
1.7.10.4

  parent reply	other threads:[~2014-05-21 11:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-21 11:42 [OSSTEST PATCH 1/6] rumpuserxen: Increase build timeout for grievous bodge Ian Jackson
2014-05-21 11:42 ` [OSSTEST PATCH 2/6] crontab: Rearrange actually-daily branches Ian Jackson
2014-05-21 11:42 ` [OSSTEST PATCH 3/6] make-flight: rumpuserxen amd64 too Ian Jackson
2014-05-21 11:56   ` Ian Campbell
2014-05-21 13:52     ` Ian Jackson
2014-05-21 14:01       ` Ian Campbell
2014-05-21 11:42 ` [OSSTEST PATCH 4/6] FIX MAKE-FLIGHT Ian Jackson
2014-05-21 11:56   ` Ian Campbell
2014-05-21 13:50     ` Ian Jackson
2014-05-21 11:42 ` Ian Jackson [this message]
2014-05-21 11:42 ` [OSSTEST PATCH 6/6] sg-run-job: Do blocked check globally, in run-job Ian Jackson
2014-05-21 11:57   ` Ian Campbell
2014-05-21 13:51     ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1400672528-16185-5-git-send-email-ian.jackson@eu.citrix.com \
    --to=ian.jackson@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).