[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 3/4] cs-bisection-step: Print our command line at the start
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 <Ian.Jackson@xxxxxxxxxxxxx> --- 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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |