You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/05/07 00:39:30 UTC
svn commit: r941959 - /incubator/libcloud/trunk/setup.py
Author: pquerna
Date: Thu May 6 22:39:30 2010
New Revision: 941959
URL: http://svn.apache.org/viewvc?rev=941959&view=rev
Log:
look for missing secrets file, and prevet running of test cases without it
Modified:
incubator/libcloud/trunk/setup.py
Modified: incubator/libcloud/trunk/setup.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/setup.py?rev=941959&r1=941958&r2=941959&view=diff
==============================================================================
--- incubator/libcloud/trunk/setup.py (original)
+++ incubator/libcloud/trunk/setup.py Thu May 6 22:39:30 2010
@@ -36,6 +36,13 @@ class TestCommand(Command):
pass
def run(self):
+ secrets = pjoin(self._dir, 'test', 'secrets.py')
+ if not os.path.isfile(secrets):
+ print "Missing %s" % (secrets)
+ print "Maybe you forgot to copy it from -dist:"
+ print " cp test/secrets.py-dst test/secrets.py"
+ sys.exit(1)
+
testfiles = []
for t in glob(pjoin(self._dir, 'test', 'test_*.py')):
testfiles.append('.'.join(