Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] r57855 - /branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/
  • From: mvidner@xxxxxxxxxxxxxxxx
  • Date: Thu, 02 Jul 2009 14:57:51 -0000
  • Message-id: <E1MMNjT-0002yz-GG@xxxxxxxxxxxxxxxx>
Author: mvidner
Date: Thu Jul 2 16:57:51 2009
New Revision: 57855

URL: http://svn.opensuse.org/viewcvs/yast?rev=57855&view=rev
Log:
Skip python tests if python is not available

Added:

branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t2.py
(props changed)
- copied unchanged from r57826,
branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t2

branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t3-unknown-method.py
(props changed)
- copied unchanged from r57823,
branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t3-unknown-method

branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t4-bad-params.py
(props changed)
- copied unchanged from r57834,
branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t4-bad-params

branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t5-params.py
(props changed)
- copied unchanged from r57834,
branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t5-params
Removed:
branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t2

branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t3-unknown-method

branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t4-bad-params

branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/t5-params
Modified:

branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/Makefile.am

branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/test_all

Modified:
branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/Makefile.am
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/Makefile.am?rev=57855&r1=57854&r2=57855&view=diff
==============================================================================
---
branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/Makefile.am
(original)
+++
branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/Makefile.am
Thu Jul 2 16:57:51 2009
@@ -3,6 +3,6 @@

SUBDIRS = modules

-EXTRA_DIST = $(wildcard *.test) test_all test_server t1 t2
+EXTRA_DIST = $(wildcard *.test) test_all test_server t1 $(wildcard t*.py)

CLEANFILES = $(wildcard *.test.reply)

Modified:
branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/test_all
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/test_all?rev=57855&r1=57854&r2=57855&view=diff
==============================================================================
---
branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/test_all
(original)
+++
branches/tmp/mvidner/core-dbus-values/dbus/namespace_service/testsuite/test_all
Thu Jul 2 16:57:51 2009
@@ -3,8 +3,6 @@
# $0 [-a: all, even failing]
# $0 ./a_single_testcase
if [ "$1" = "" ]; then
- # some(most) of them require python
- #: ${CASES:=./t1}
: ${CASES:=./t[1235]*}
elif [ "$1" = "-a" ]; then
: ${CASES:=./t? ./t*-*}
@@ -13,6 +11,10 @@
fi
CASES_A=($CASES) # make array
CASES_A=(${CASES_A[@]/*~/}) # exclude backup files
+if ! which python; then
+ echo >&2 "Python not found, skipping those tests"
+ CASES_A=(${CASES_A[@]/*.py/}) # exclude python files
+fi
# load the modules from the current directory
export Y2DIR=.
./test_server \

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages