[banshee] tests: don't compare exit code to == 1, but to != 0
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] tests: don't compare exit code to == 1, but to != 0
- Date: Fri, 17 Jan 2014 14:42:15 +0000 (UTC)
commit 19902d50d045db910ad62b2146003a0b42c6efd1
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Fri Jan 17 15:27:53 2014 +0100
tests: don't compare exit code to == 1, but to != 0
NUnit returns the number of tests that failed, so we need to
check for "different than zero" rather than "equal to 1".
tests/Makefile.am | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 9f25340..3f6a12b 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -37,11 +37,11 @@ RUNNER = \
echo -e "\033[1mRunning tests on $${asm}...\033[0m"; \
$(ENV_OPTIONS) $(NUNIT_CONSOLE) -nologo -noshadow $$asm; \
export CURRENT_EXIT_CODE="$$?"; \
- if [[ $${CURRENT_EXIT_CODE} -eq 1 ]]; then \
+ if [[ $${CURRENT_EXIT_CODE} -ne 0 ]]; then \
export GLOBAL_EXIT_CODE=1; \
fi; \
done; \
- if [[ $${GLOBAL_EXIT_CODE} -eq 1 ]]; then \
+ if [[ $${GLOBAL_EXIT_CODE} -ne 0 ]]; then \
echo "One or more tests failed"; \
exit $${GLOBAL_EXIT_CODE}; \
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]