Mercurial > p > roundup > code
comparison run_tests.py @ 2075:b1704ba7be41
make mysql / postgresql work again. beginnings of otk/session store in rdbmses
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 12 Mar 2004 04:09:00 +0000 |
| parents | 2996e168d359 |
| children | 3c38d9be63a6 |
comparison
equal
deleted
inserted
replaced
| 2073:261c2e6ceb1e | 2075:b1704ba7be41 |
|---|---|
| 356 self.libdir = "lib.%s" % PLAT_SPEC | 356 self.libdir = "lib.%s" % PLAT_SPEC |
| 357 os.chdir("build") | 357 os.chdir("build") |
| 358 # Hack sys.path | 358 # Hack sys.path |
| 359 self.cwd = os.getcwd() | 359 self.cwd = os.getcwd() |
| 360 sys.path.insert(0, os.path.join(self.cwd, self.libdir)) | 360 sys.path.insert(0, os.path.join(self.cwd, self.libdir)) |
| 361 print sys.path | |
| 362 # Hack again for external products. | 361 # Hack again for external products. |
| 363 global functional | 362 global functional |
| 364 kind = functional and "functional" or "unit" | 363 kind = functional and "functional" or "unit" |
| 365 if libdir: | 364 if libdir: |
| 366 extra = os.path.join(org_cwd, libdir) | 365 extra = os.path.join(org_cwd, libdir) |
| 576 self.type2count = type2count | 575 self.type2count = type2count |
| 577 self.type2all = type2all | 576 self.type2all = type2all |
| 578 | 577 |
| 579 def runner(files, test_filter, debug): | 578 def runner(files, test_filter, debug): |
| 580 runner = ImmediateTestRunner(verbosity=VERBOSE, debug=debug, | 579 runner = ImmediateTestRunner(verbosity=VERBOSE, debug=debug, |
| 581 progress=progress) | 580 progress=progress) |
| 582 suite = unittest.TestSuite() | 581 suite = unittest.TestSuite() |
| 583 for file in files: | 582 for file in files: |
| 584 s = get_suite(file) | 583 s = get_suite(file) |
| 585 # See if the levels match | 584 # See if the levels match |
| 586 dolevel = (level == 0) or level >= getattr(s, "level", 0) | 585 dolevel = (level == 0) or level >= getattr(s, "level", 0) |
