|
53 | 53 |
|
54 | 54 | # Run the regression tests against the primary.
|
55 | 55 | my $extra_opts = $ENV{EXTRA_REGRESS_OPTS} || "";
|
56 |
| -system_or_bail($ENV{PG_REGRESS} . " $extra_opts " . |
57 |
| - "--dlpath=\"$dlpath\" " . |
58 |
| - "--bindir= " . |
59 |
| - "--host=" . $node_primary->host . " " . |
60 |
| - "--port=" . $node_primary->port . " " . |
61 |
| - "--schedule=../regress/parallel_schedule " . |
62 |
| - "--max-concurrent-tests=20 " . |
63 |
| - "--inputdir=../regress " . |
64 |
| - "--outputdir=\"$outputdir\""); |
| 56 | +my $rc = system($ENV{PG_REGRESS} . " $extra_opts " . |
| 57 | + "--dlpath=\"$dlpath\" " . |
| 58 | + "--bindir= " . |
| 59 | + "--host=" . $node_primary->host . " " . |
| 60 | + "--port=" . $node_primary->port . " " . |
| 61 | + "--schedule=../regress/parallel_schedule " . |
| 62 | + "--max-concurrent-tests=20 " . |
| 63 | + "--inputdir=../regress " . |
| 64 | + "--outputdir=\"$outputdir\""); |
| 65 | +if ($rc != 0) |
| 66 | +{ |
| 67 | + # Dump out the regression diffs file, if there is one |
| 68 | + my $diffs = "$outputdir/regression.diffs"; |
| 69 | + if (-e $diffs) |
| 70 | + { |
| 71 | + print "=== dumping $diffs ===\n"; |
| 72 | + print slurp_file($diffs); |
| 73 | + print "=== EOF ===\n"; |
| 74 | + } |
| 75 | +} |
| 76 | +is($rc, 0, 'regression tests pass'); |
65 | 77 |
|
66 | 78 | # Clobber all sequences with their next value, so that we don't have
|
67 | 79 | # differences between nodes due to caching.
|
|
0 commit comments