diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-08-28 18:52:18 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-08-28 18:52:18 +0200 |
commit | 2602ec55700d520d96769d559893152b49e2c0b9 (patch) | |
tree | 653ae470714843f8746136365ae9dab032f7cf07 /t/02.2-unit-repo.t | |
parent | e77acc913f47bce50ad00fddf484faf6baf92df9 (diff) | |
download | sbotools2-2602ec55700d520d96769d559893152b49e2c0b9.tar.xz |
02.2-unit-repo.t: add debugging output
Diffstat (limited to 't/02.2-unit-repo.t')
-rwxr-xr-x | t/02.2-unit-repo.t | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/t/02.2-unit-repo.t b/t/02.2-unit-repo.t index 2b71fcf..bf5f54b 100755 --- a/t/02.2-unit-repo.t +++ b/t/02.2-unit-repo.t @@ -20,11 +20,20 @@ if (defined $ENV{TRAVIS} and $ENV{TRAVIS} eq 'true') { my $repo = "/usr/sbo/repo"; my $moved = rename $repo, "$repo.orig"; my $url = "$RealBin/02.2-unit-repo/"; +my $rsync_res; -capture_merged { - rsync_sbo_tree($url); +note "Unit repo: $url"; +note "rsync $url:\n" . capture_merged { + $rsync_res = exit_code { rsync_sbo_tree($url); }; }; +if (defined $rsync_res) { + note "rsync exit status: $rsync_res"; + rename "$repo.orig", $repo if $moved; + + BAIL_OUT("rsync_sbo_tree exited"); +} + # 1-3: test do_slackbuild() without /etc/profile.d/32dev.sh { my $file = "/etc/profile.d/32dev.sh"; |