Changes the cwd to to path defined in the current graph. The tests are supposed to be relative to the suite configuration.
(self, suite_path)
| 572 | logging.error("No owners provided for %s" % self.name) |
| 573 | |
| 574 | def ChangeCWD(self, suite_path): |
| 575 | """Changes the cwd to to path defined in the current graph. |
| 576 | |
| 577 | The tests are supposed to be relative to the suite configuration. |
| 578 | """ |
| 579 | suite_dir = os.path.abspath(os.path.dirname(suite_path)) |
| 580 | bench_dir = os.path.normpath(os.path.join(*self.path)) |
| 581 | cwd = os.path.join(suite_dir, bench_dir) |
| 582 | logging.debug('Changing CWD to: %s' % cwd) |
| 583 | os.chdir(cwd) |
| 584 | |
| 585 | def GetCommandFlags(self, extra_flags=None): |
| 586 | suffix = ['--'] + self.test_flags if self.test_flags else [] |