diff options
| author | Daniel P. Berrange <berrange@redhat.com> | 2014-03-18 11:11:48 +0000 |
|---|---|---|
| committer | Daniel P. Berrange <berrange@redhat.com> | 2014-03-19 15:16:15 +0000 |
| commit | eaded7bdadf3ccdc4b208ec0ed65a1b23b8b5f69 (patch) | |
| tree | 894d5dd6ca0ef88908550bf1db64824af7bb810b /setup.py | |
| parent | 69c4600d61fa74c4977d2471a29fb73f0fe5edb0 (diff) | |
| download | libvirt-python-eaded7bdadf3ccdc4b208ec0ed65a1b23b8b5f69.tar.gz | |
Add support for running unit tests with nose
Make the 'python setup.py test' able to run unit tests
found under tests/ through the 'nosetests' command
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -267,7 +267,12 @@ class my_test(Command): apis = get_api_xml_files() + if "PYTHONPATH" in os.environ: + os.environ["PYTHONPATH"] = self.build_platlib + ":" + os.environ["PYTHONPATH"] + else: + os.environ["PYTHONPATH"] = self.build_platlib self.spawn([sys.executable, "sanitytest.py", self.build_platlib, apis[0]]) + self.spawn(["nosetests"]) class my_clean(clean): |
