コード例 #1
0
ファイル: watcher.py プロジェクト: XiaonuoGantan/autonose
    def _test_file(self, test):
        addr = test.address()
        err = RuntimeError("test.address does not contain a valid file: %s" %
                           (addr, ))
        if not addr: raise err

        file_path = addr[0]
        if not os.path.exists(file_path): raise err
        return file_util.relative(file_util.source(file_path))
コード例 #2
0
ファイル: watcher.py プロジェクト: timbertson/autonose
    def _test_file(self, test):
        addr = test.address()
        err = RuntimeError("test.address does not contain a valid file: %s" % (addr,))
        if not addr:
            raise err

        file_path = addr[0]
        if not os.path.exists(file_path):
            raise err
        return file_util.relative(file_util.source(file_path))
コード例 #3
0
ファイル: watcher.py プロジェクト: rca/autonose
 def _test_file(self, test):
     file_path = test.address()[0]
     if not os.path.exists(file_path):
         raise RuntimeError("test.address does not contain a valid file: %s" % (test.address(),))
     return file_util.relative(file_util.source(file_path))