Browse code

fix make tests to use the set of module from git checkout

If someone try to run the test suit with ansible already installed,
the mix between content in /usr/share and in the git checkout
can result in strange failure ( as I found out the hard way ). For example,
the test_copy module will call the action plugin for copy from git,
who will call the 'file' module from system, passing unsupported arguments

Michael Scherer authored on 2013/11/16 20:45:24
Showing 1 changed files
... ...
@@ -62,7 +62,7 @@ NOSETESTS := nosetests
62 62
 all: clean python
63 63
 
64 64
 tests:
65
-	PYTHONPATH=./lib $(NOSETESTS) -d -v
65
+	PYTHONPATH=./lib ANSIBLE_LIBRARY=./library  $(NOSETESTS) -d -v
66 66
 
67 67
 # To force a rebuild of the docs run 'touch VERSION && make docs'
68 68
 docs: $(MANPAGES) modulepages