File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
daemon/cmd/integration_runner Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 51
51
flagMaxCustomEvents = flag .Int ("max_custom_events" , 30000 , "value for newrelic.custom_events.max_samples_stored" )
52
52
flagWarnIsFail = flag .Bool ("warnisfail" , false , "warn result is treated as a fail" )
53
53
flagOpcacheOff = flag .Bool ("opcacheoff" , false , "run without opcache. Some tests are intended to fail when run this way" )
54
+ flagDebug = flag .Bool ("debug" , false , "enable debug logging for integration_runner" )
54
55
55
56
// externalPort is the port on which we start a server to handle
56
57
// external calls.
@@ -527,6 +528,10 @@ func runTest(t *integration.Test) {
527
528
if skipIf != nil {
528
529
_ , body , err := skipIf .Execute ()
529
530
531
+ if * flagDebug {
532
+ fmt .Printf ("SkipIf output:\n %s\n " , body )
533
+ }
534
+
530
535
if err != nil {
531
536
t .Output = body
532
537
t .Fatal (fmt .Errorf ("error executing skipif: %v" , err ))
@@ -557,6 +562,10 @@ func runTest(t *integration.Test) {
557
562
t .Duration = 0
558
563
}
559
564
565
+ if * flagDebug {
566
+ fmt .Printf ("Test output:\n %s\n " , body )
567
+ }
568
+
560
569
// Always save the test output. If an error occurred it may contain
561
570
// critical information regarding the cause. Currently, it may also
562
571
// contain valgrind commentary which we want to display.
You can’t perform that action at this time.
0 commit comments