~maus-scifi/maus/tracker_devel

« back to all changes in this revision

Viewing changes to tests/py_unit/test_cpp_unit.py

  • Committer: cheid001
  • Date: 2015-02-05 14:00:23 UTC
  • Revision ID: cheid001-20150205140023-rkc94ubaijfnep4k
reverted some test files

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
                               'build',
11
11
                               'test_cpp_unit')
12
12
        cpp_test = os.system(cpp_exe)
13
 
        print "cpp_test: ", cpp_test, "\n"
14
13
 
15
14
        # Remove stray files
16
15
        if os.path.isfile('_delete_mice_module_test.dat'):
17
16
            os.unlink('_delete_mice_module_test.dat')
18
 
            print "_delete_mice_module_test.dat exists... well shit.\n"
19
17
 
20
18
        # Especially remove stray files in MAUS_ROOT_DIR
21
19
        _dir = os.environ.get('MAUS_ROOT_DIR')
22
20
        if os.path.isfile('%s/_delete_mice_module_test.dat' % _dir):
23
21
            os.unlink('%s/_delete_mice_module_test.dat' % _dir)
24
 
            print "Again!!!\n"
25
22
 
26
23
        self.assertEqual(cpp_test, 0, 'Failed cpp tests with '+str(cpp_test))
27
24