summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-06-26 11:39:21 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-06-26 11:39:21 +0100
commitb00ebe6baee22bd79e3aeca38a3390a25fbc5e14 (patch)
treef5208d32d2a9f8a5a16255ee6de9a062ebad633a /tests
parentc2587cf3aac2e9c734e040de86f07e950042c112 (diff)
downloadmorph-b00ebe6baee22bd79e3aeca38a3390a25fbc5e14.tar.gz
Fix test suite to deal with morph output changes
Also, some bug fixes. Also, when handling a BaseException, log the exception (with traceback) that we're handling, in case there is an error while handling it, because the second error will otherwise mask the first one.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/setup1
-rwxr-xr-xtests/stratum-overlap-warns.script3
-rwxr-xr-xtests/stratum-overlap-writes-overlap.script2
3 files changed, 4 insertions, 2 deletions
diff --git a/tests/setup b/tests/setup
index 663f591e..5a6668a3 100755
--- a/tests/setup
+++ b/tests/setup
@@ -124,5 +124,6 @@ cachedir = $DATADIR/cache
log = $DATADIR/morph.log
keep-path = true
no-distcc = true
+quiet = true
EOF
diff --git a/tests/stratum-overlap-warns.script b/tests/stratum-overlap-warns.script
index 2e9965fe..ab6c6de6 100755
--- a/tests/stratum-overlap-warns.script
+++ b/tests/stratum-overlap-warns.script
@@ -29,7 +29,8 @@ warning_mentions(){
}
"$SRCDIR/scripts/test-morph" \
- build --log=$log test:morphs-repo overlap overlap-stratum.morph
+ build --log=$log test:morphs-repo overlap overlap-stratum.morph \
+ > /dev/null
grep WARNING "$log" >"$warnings"
for str in overlap-stratum \
overlap-foo-baz overlap-foobar bin/bar \
diff --git a/tests/stratum-overlap-writes-overlap.script b/tests/stratum-overlap-writes-overlap.script
index 28d3d044..d40d3ba5 100755
--- a/tests/stratum-overlap-writes-overlap.script
+++ b/tests/stratum-overlap-writes-overlap.script
@@ -24,7 +24,7 @@ cache="$DATADIR/cache/artifacts"
"$SRCDIR/scripts/test-morph" \
- build test:morphs-repo overlap overlap-stratum.morph
+ build test:morphs-repo overlap overlap-stratum.morph > /dev/null
"$SRCDIR/scripts/list-overlaps" groups \
"$cache"/*.stratum.overlap-stratum.overlaps |
while IFS='\n' read overlaps; do