~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to test/testbase.py

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## $Id: testbase.py 12407 2007-04-17 22:24:53Z boincadm $
 
1
## $Id: testbase.py 18356 2009-06-10 22:38:33Z davea $
2
2
 
3
3
# testbase.py
4
4
#
26
26
    options.have_init_t = True
27
27
 
28
28
    if not os.path.exists('testbase.py'):
29
 
        os.chdir(os.path.join(boinc_path_config.TOP_SOURCE_DIR,'test'))
 
29
        # automake sets the srcdir env. variable if srcdir != builddir
 
30
        os.chdir(os.path.join(os.getenv('srcdir'),'test'))
30
31
    if not os.path.exists('testbase.py'):
31
32
        raise SystemExit('Could not find testbase.py anywhere')
32
33