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@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
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 $!;
csreadconfig();
grabrepolock_reexec(@org_argv);
+reportcmdline();
findbasics();
digraph_whole();
digraph_relevant();