ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/run_tests.py
(Generate patch)

Comparing ray/test/run_tests.py (file contents):
Revision 1.4 by schorsch, Wed Mar 30 18:09:00 2016 UTC vs.
Revision 1.5 by schorsch, Sat Apr 2 15:57:24 2016 UTC

# Line 67 | Line 67 | class RadianceTests():
67                          oldraypath = old_osenv.get('RAYPATH', '')
68                          raypathlist = oldraypath.split(os.pathsep)
69                          if self.radlib:
70 <                                for rlib in self.radlib:
70 >                                for rlib in self.radlib + ['.']:
71                                          if rlib not in raypathlist:
72                                                  raypathlist.insert(0, rlib)
73                                  os.environ['RAYPATH'] = os.pathsep.join(raypathlist)
# Line 75 | Line 75 | class RadianceTests():
75                          pyradlib = None
76                          for rp in raypathlist:
77                                  prd = os.path.join(rp, 'pyradlib')
78                                #print(prd)
78                                  if os.path.isdir(prd) or os.path.islink(prd):
80                                        #print('--- found !!!')
79                                          if rp not in sys.path:
80                                                  sys.path.insert(0, rp)
81                                          pyradlib = prd
# Line 117 | Line 115 | class RadianceTests():
115                          fulldir = os.path.join(self.testdir, dir)
116                          if not os.path.isdir(fulldir):
117                                  raise Error('No such directory: "%s"' % fulldir)
118 <                        suite = loader.discover(fulldir, 'test*.py',
118 >                        suite = loader.discover(fulldir, 'test_*.py',
119                                          top_level_dir=self.thisdir)
120                          count = suite.countTestCases()
121                          if count:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines