aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testsuite.at
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-06-04 11:29:46 +0200
committerpespin <pespin@sysmocom.de>2019-06-05 17:01:06 +0000
commit4474f357709b4b08ff22b74ad37bc5e6286bea3c (patch)
tree641f4758c7b69b38b75525955dc6791372b7bd6d /tests/testsuite.at
parentf523f228994192c1bf742570a02309a6d66a72f2 (diff)
db_sms_test: Remove libdbi expected driver load errors
Newer versions of libdbi print to stderr unconditionally when trying to load drivers from /usr/lib/dbd. This makes test output to change depending on host/distro set up (installed modules). Let's get those messages out to make it easier for people having tests pass. We swap stderr/stdout instead of mixing to avoud future possible race conditions if both get content writen into them. Change-Id: Iec78826d28435f464be22e81b3776a6ae8326d59
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r--tests/testsuite.at3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index cd01bf1c6..c0788b9ab 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -20,7 +20,8 @@ AT_SETUP([db_sms_test])
AT_KEYWORDS([db_sms_test])
cat $abs_srcdir/db_sms/db_sms_test.ok > expout
cat $abs_srcdir/db_sms/db_sms_test.err > experr
-AT_CHECK([$abs_top_builddir/tests/db_sms/db_sms_test], [], [expout], [experr])
+# swap the output from stderr and stdout so we can drop libdbi prints to stderr when trying to load wrong drivers
+AT_CHECK([$abs_top_builddir/tests/db_sms/db_sms_test 3>&1 1>&2 2>&3 | grep -v "Failed to load driver" | grep -v "cannot open shared object file"], [], [expout], [experr])
AT_CLEANUP
AT_SETUP([msc_vlr_test_no_authen])