コード例 #1
0
ファイル: project_checkout.py プロジェクト: stg-tud/MUBench
 def exists(self) -> bool:
     return exists(self.checkout_dir) and Shell.try_exec("svn info", cwd=self.checkout_dir)
コード例 #2
0
ファイル: test_shell.py プロジェクト: stg-tud/MUBench
 def test_command_try_failure(self):
     assert not Shell.try_exec("unknown command")
コード例 #3
0
ファイル: project_checkout.py プロジェクト: stg-tud/MUBench
 def _is_repo(self, path: str):
     return exists(path) and Shell.try_exec("git status", cwd=path, logger=self._logger)
コード例 #4
0
ファイル: test_shell.py プロジェクト: stg-tud/MUBench
 def test_command_try(self):
     assert Shell.try_exec("echo 'test'")