forked from cory/tildefriends
Set rlimits on OS X. Enable tests on OSX (except valgrind). setrlimit error handling.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3209 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -7,7 +7,7 @@ import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
if sys.platform != 'linux2':
|
||||
if sys.platform not in ('darwin', 'linux2'):
|
||||
print 'Tests are only enabled on Linux.'
|
||||
exit(0)
|
||||
|
||||
@ -51,7 +51,10 @@ for test in selectedTests:
|
||||
process = subprocess.Popen(['bash', test], stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=tmp, env=env)
|
||||
stdout, stderr = process.communicate()
|
||||
if process.returncode == 0:
|
||||
print 'PASSED', test
|
||||
if stdout.strip() == "SKIP":
|
||||
print 'SKIPPED', test
|
||||
else:
|
||||
print 'PASSED', test
|
||||
passCount += 1
|
||||
else:
|
||||
print 'FAILED', test
|
||||
|
Reference in New Issue
Block a user