diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-12-08 12:29:06 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2011-12-09 11:57:00 +0000 |
commit | c4a6872bcb4cf2c5e9450004579d65b31aaa3741 (patch) | |
tree | 4ca89c24720079e7db2cf4de0f372e94988aaf82 /tests/build-chunk.script | |
parent | 36000e8d86934ea8b9f3e563b32c5389253d4864 (diff) | |
download | morph-c4a6872bcb4cf2c5e9450004579d65b31aaa3741.tar.gz |
if morph fails, dump its log to stderr so user can easily see it
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Diffstat (limited to 'tests/build-chunk.script')
-rwxr-xr-x | tests/build-chunk.script | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/build-chunk.script b/tests/build-chunk.script index 475d8c2b..a4e1fef6 100755 --- a/tests/build-chunk.script +++ b/tests/build-chunk.script @@ -20,9 +20,12 @@ set -e cache="$DATADIR/build-chunk-cache" +log="$DATADIR/build-chunk-morph.log" ./morph --no-default-configs build repo farrokh hello.morph \ --git-base-url="file://$DATADIR" \ - --cachedir="$cache" --keep-path --no-distcc + --cachedir="$cache" --keep-path --no-distcc \ + --log="$log" || cat "$log" 1>&2 + for chunk in "$cache/"*.chunk.* do echo "$chunk:" | sed 's/[^.]*//' |