Skip to content

Commit

Permalink
Save both old and new logs separately
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDaniel committed Feb 7, 2019
1 parent b535dc0 commit 57c0707
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Blin/Processing.pm6
Expand Up @@ -426,14 +426,15 @@ sub process-module(Module $module,
:@always-unpacked, :$testable,
install => $module.needed;
$module.output-new = $new-result<output>;
spurt $module.install-path.IO.add(β€˜log’), $module.output-new;
spurt $module.install-path.IO.add(β€˜log-new’), $module.output-new;
return $module.done.keep: $OK if alright $new-result; # don't even test the old one

note β€œπŸ₯žπŸ₯žπŸ₯ž Testing $module.name() (old)”; # (old revision, start point)
my $old-result = test-module $start-point-full, $module,
:$zef-path, :$zef-config-path, :$timeout,
:@always-unpacked, :$testable;
$module.output-old = $old-result<output>;
spurt $module.install-path.IO.add(β€˜log-old’), $module.output-old;

return $module.done.keep: AlwaysFail unless alright $old-result;

Expand Down

0 comments on commit 57c0707

Please sign in to comment.