From: Ian Jackson Subject: [OSSTEST PATCH 3/4] cs-bisection-step: Print our command line at the start Date: Fri, 4 Sep 2015 11:56:07 +0100 Message-ID: <1441364168-24480-4-git-send-email-ian.jackson@eu.citrix.com> References: <1441364168-24480-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZXofP-0004jB-62 for xen-devel@lists.xenproject.org; Fri, 04 Sep 2015 10:56:23 +0000 In-Reply-To: <1441364168-24480-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org The usual approach for debugging the cs-bisection-step is to repro the problem (with --max-flight), which is most easily done by copying the command line provided during a run which did the wrong thing. Print the command line at startup, so that it appears in the report. This will save us grobbling through the logs and cron mail. Signed-off-by: Ian Jackson --- cs-bisection-step | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cs-bisection-step b/cs-bisection-step index 42bf20b..37efbea 100755 --- a/cs-bisection-step +++ b/cs-bisection-step @@ -114,6 +114,18 @@ our (@treeinfos); our $restrictflight_cond= restrictflight_cond(); our $blessingscond= '('.join(" OR ", map { "blessing='$_'" } @blessings).')'; +sub reportcmdline () { + print STDERR "Running cs-bisection-step"; + foreach (my @noalias = @org_argv) { + if (!length || m{[^-+,./_=:A-Z0-9a-z]}) { + s{'}{'\\''}g; + $_ = "'$_'"; + } + print STDERR " ", $_; + } + print STDERR "\n"; +} + sub psummary ($) { my ($s) = @_; print STDERR $s or die $!; @@ -1326,6 +1338,7 @@ sub compute_exitstatus () { csreadconfig(); grabrepolock_reexec(@org_argv); +reportcmdline(); findbasics(); digraph_whole(); digraph_relevant(); -- 1.7.10.4