From 2cc079a4b24d126f9f6b738c14b40500a7257c3f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 15 Dec 2011 00:15:09 +0000 Subject: [PATCH] add some test status helpers to simplify management of i/o and exit status --- eclass/tests/autotools:eaclocal_amflags.sh | 6 ++++-- eclass/tests/eutils:path_exists.sh | 9 +++------ eclass/tests/scons-utils.sh | 6 ++++-- eclass/tests/tests-common.sh | 12 ++++++++++++ eclass/tests/toolchain-funcs.sh | 14 ++++++++------ 5 files changed, 31 insertions(+), 16 deletions(-) diff --git a/eclass/tests/autotools:eaclocal_amflags.sh b/eclass/tests/autotools:eaclocal_amflags.sh index ac0ab767aa55..186565629051 100755 --- a/eclass/tests/autotools:eaclocal_amflags.sh +++ b/eclass/tests/autotools:eaclocal_amflags.sh @@ -5,11 +5,11 @@ source tests-common.sh inherit autotools test-it() { - ebegin "Testing eaclocal_amflags $1: $2" + tbegin "eaclocal_amflags $1: $2" printf "ACLOCAL_AMFLAGS = %b\n" "$2" > Makefile.am local flags=$(eaclocal_amflags) exp=${3:-$2} [[ "${flags}" == "${exp}" ]] - if ! eend $? ; then + if ! tend $? ; then printf '### INPUT:\n%s\n' "$2" printf '### FILE:\n%s\n' "$(