diff --git a/sflphone-common/test/Makefile.am b/sflphone-common/test/Makefile.am
index a670b50d91a036d5023c7b889d485471ed21c60f..5dde3e8664605c1176d2db3dc8756011d4996af2 100644
--- a/sflphone-common/test/Makefile.am
+++ b/sflphone-common/test/Makefile.am
@@ -4,6 +4,7 @@ TESTS_ENVIRONMENT = CODECS_PATH="$(top_builddir)/src/audio/codecs" \
 					FAKE_PLUGIN_DIR="$(top_builddir)/src/plug-in/test/" \
 					FAKE_PLUGIN_NAME="$(top_builddir)/src/plug-in/test/libplugintest.so"
 check_PROGRAMS = test
+TESTS = run_tests.sh
 
 test_CXXFLAGS = $(CPPUNIT_CFLAGS)
 test_LDADD = $(LLIBS) @LIBCRYPTO_LIBS@
diff --git a/sflphone-common/test/run_tests.sh b/sflphone-common/test/run_tests.sh
index a2ce661b7cb87c3b5dd5578e10c88ce90faf1f96..69649f1ffa2b93c9eb95c886d580851b9d29e420 100755
--- a/sflphone-common/test/run_tests.sh
+++ b/sflphone-common/test/run_tests.sh
@@ -1,2 +1,2 @@
 #!/bin/bash
-CODECS_PATH="../src/audio/codecs" FAKE_PLUGIN_DIR="../src/plug-in/test/" FAKE_PLUGIN_NAME="../src/plug-in/test/libplugintest.so" ./test --xml || exit 1
+CODECS_PATH="../src/audio/codecs" FAKE_PLUGIN_DIR="../src/plug-in/test/" FAKE_PLUGIN_NAME="../src/plug-in/test/libplugintest.so" exec ./test --xml