All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <iwj@xenproject.org>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <iwj@xenproject.org>
Subject: [OSSTEST PATCH 02/13] Honour OSSTEST_SIMULATE_FAIL in sg-run-job
Date: Thu,  8 Oct 2020 20:14:11 +0100	[thread overview]
Message-ID: <20201008191422.5683-3-iwj@xenproject.org> (raw)
In-Reply-To: <20201008191422.5683-1-iwj@xenproject.org>

This is a Tcl list of globs for <job>.<step>, and allows for
simulating particular test failures.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
---
 sg-run-job | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/sg-run-job b/sg-run-job
index dd76d4f2..c64ae026 100755
--- a/sg-run-job
+++ b/sg-run-job
@@ -406,7 +406,14 @@ proc spawn-ts {iffail testid args} {
     jobdb::spawn-step-commit $flight $jobinfo(job) $stepno $testid
 
     set xprefix {}
-    if {[var-or-default env(OSSTEST_SIMULATE) 0]} { set xprefix echo }
+    if {[var-or-default env(OSSTEST_SIMULATE) 0]} {
+	set xprefix echo
+	foreach ent [var-or-default env(OSSTEST_SIMULATE_FAIL) {}] {
+	    if {[string match $ent $jobinfo(job).$testid]} {
+		set xprefix OSSTEST_SIMULATE_FAIL
+	    }
+	}
+    }
 
     set log [jobdb::step-log-filename $flight $jobinfo(job) $stepno $ts]
     set redirects {}
-- 
2.20.1



  parent reply	other threads:[~2020-10-08 19:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-08 19:14 [OSSTEST PATCH 00/13] Immediately retry failing tests Ian Jackson
2020-10-08 19:14 ` [OSSTEST PATCH 01/13] Honour OSSTEST_SIMULATE=2 to actually run dummy flight Ian Jackson
2020-10-08 19:14 ` Ian Jackson [this message]
2020-10-08 19:14 ` [OSSTEST PATCH 03/13] sg-report-job-history: eval $DAILY_BRANCH_PREEXEC_HOOK Ian Jackson
2020-10-08 19:14 ` [OSSTEST PATCH 04/13] cri-args-hostlists: New debug var $OSSTEST_REPORT_JOB_HISTORY_RUN Ian Jackson
2020-10-08 19:14 ` [OSSTEST PATCH 05/13] cri-args-hostlists: Break out report_flight and publish_logs Ian Jackson
2020-10-08 19:14 ` [OSSTEST PATCH 06/13] sg-report-flight: Break out printout_flightheader Ian Jackson
2020-10-08 19:14 ` [OSSTEST PATCH 07/13] sg-report-flight: Provide --refer-to-flight option Ian Jackson
2020-10-08 19:14 ` [OSSTEST PATCH 08/13] sg-report-flight: Nicer output for " Ian Jackson
2020-10-08 19:14 ` [OSSTEST PATCH 09/13] Introduce real-retry blessing Ian Jackson
2020-10-08 19:14 ` [OSSTEST PATCH 10/13] cri-args-hostlists: Move flight_html_dir variable Ian Jackson
2020-10-08 19:14 ` [OSSTEST PATCH 11/13] cr-daily-branch: Immediately retry failing tests Ian Jackson
2020-10-08 19:14 ` [OSSTEST PATCH 12/13] Honour OSSTEST_SIMULATE_FAIL_RETRY for immediate retries Ian Jackson
2020-10-08 19:14 ` [OSSTEST PATCH 13/13] cr-daily-branch: Do not do immediate retry of failing xtf flights 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=20201008191422.5683-3-iwj@xenproject.org \
    --to=iwj@xenproject.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.