From be31298c258ed938e51df7a0601a69c6f7c2dfda Mon Sep 17 00:00:00 2001 From: meloam Date: Fri, 17 Feb 2012 18:24:04 +0000 Subject: [PATCH 1/6] adding gitignore git-svn-id: svn+ssh://svn.cern.ch/reps/CMSDMWM/Sandbox/trunk@15267 4525493e-7705-40b1-a816-d608a930855b --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3a1b70e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +nosetests.xml +*.pyc +*.pyo From c77c9a4dbf506d320805fb0b96a92c5baea3a7be Mon Sep 17 00:00:00 2001 From: meloam Date: Fri, 17 Feb 2012 18:24:18 +0000 Subject: [PATCH 2/6] adding sample test stuff git-svn-id: svn+ssh://svn.cern.ch/reps/CMSDMWM/Sandbox/trunk@15268 4525493e-7705-40b1-a816-d608a930855b --- setup.py | 6 ++++++ tests/dummy_t.py | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 setup.py create mode 100644 tests/dummy_t.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..75f9ef3 --- /dev/null +++ b/setup.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python2.6 + +import nose, sys + +sys.exit( nose.run( argv=[__file__, '--with-xunit', '-v','tests','-m', '(_t.py$)|(_t$)|(^test)'] ) ) + diff --git a/tests/dummy_t.py b/tests/dummy_t.py new file mode 100644 index 0000000..b434f80 --- /dev/null +++ b/tests/dummy_t.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python2.6 + +import unittest + +class testSomething( unittest.TestCase ): + def testA(self): + print "this is a test" From 17f1677f555717101fd7fc7211415efe2fe7405e Mon Sep 17 00:00:00 2001 From: Andrew Melo Date: Fri, 17 Feb 2012 13:26:13 -0600 Subject: [PATCH 3/6] fixing swampdongs --- swampdongs.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swampdongs.txt b/swampdongs.txt index aafa9dd..537650e 100644 --- a/swampdongs.txt +++ b/swampdongs.txt @@ -1 +1,3 @@ This file is where we will record all of Melos Fails. + +FileNotFoundException From 7f7d44b2fcfbc2e48f24453a87925749be345336 Mon Sep 17 00:00:00 2001 From: Andrew Melo Date: Fri, 17 Feb 2012 14:02:32 -0600 Subject: [PATCH 4/6] nose.run returns the wrong thing, oopsw --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 75f9ef3..6578e3a 100644 --- a/setup.py +++ b/setup.py @@ -2,5 +2,8 @@ import nose, sys -sys.exit( nose.run( argv=[__file__, '--with-xunit', '-v','tests','-m', '(_t.py$)|(_t$)|(^test)'] ) ) +if nose.run( argv=[__file__, '--with-xunit', '-v','tests','-m', '(_t.py$)|(_t$)|(^test)'] ): + sys.exit(0) +else: + sys.exit(1) From fd39debaa7a024f1d5307b1189f3ab923a2272fe Mon Sep 17 00:00:00 2001 From: Andrew Melo Date: Fri, 17 Feb 2012 14:07:29 -0600 Subject: [PATCH 5/6] adding banner --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 6578e3a..093944f 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,8 @@ import nose, sys +print "This is the sandbox test harness. play nice" + if nose.run( argv=[__file__, '--with-xunit', '-v','tests','-m', '(_t.py$)|(_t$)|(^test)'] ): sys.exit(0) else: From b60d06c9aaa566d0e25bc85aca79611420269050 Mon Sep 17 00:00:00 2001 From: Andrew Melo Date: Sun, 19 Feb 2012 14:29:36 -0600 Subject: [PATCH 6/6] dummy commit --- swampdongs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swampdongs.txt b/swampdongs.txt index 753353d..ffd615c 100644 --- a/swampdongs.txt +++ b/swampdongs.txt @@ -1,3 +1,3 @@ This file is where we will record all of Melos Fails. -FileNotFoundException: Test +FileNotFoundException: Test2