Changeset 2377


Ignore:
Timestamp:
Feb 19, 2010 4:56:45 PM (10 years ago)
Author:
wehart
Message:

Extending functionality of this script to allow it be run in any
directory, but still test the Coopr installation that it is installed with.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.misc/trunk/coopr/misc/runtests.py

    r2368 r2377  
    1111import pyutilib.dev.runtests
    1212import sys
     13import os.path
    1314
    1415def runCooprTests():
     16    #print os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
     17    #sys.exit(1)
     18    os.chdir( os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) )
     19    print "Running tests in directory",os.getcwd()
    1520    if len(sys.argv) == 1:
    1621        dirs=['coopr']
Note: See TracChangeset for help on using the changeset viewer.