def test_run_script(self): echo_path = BashScript(ECHO_PATH_SH, config.tmp_path) echo_path.run()
def test_read_output(self): hello_world = BashScript(HELLO_WORLD_SH, config.tmp_path) self.assertEqual(hello_world.output(), 'Hello World')
def dist_script(self): script = self._expand_dist_script(self._data['dist']) return BashScript(script, self._config.tmp_path, cwd=self.staging_path, PATH=self._config._PATH)
def version(self): return BashScript(self._data['version'], self.tmp_path, cwd=self.source_path, PATH=self._PATH).output()
def build_script(self): script = self._expand_build_script(self._data['build']) return BashScript(script, self.tmp_path, cwd=self.source_path, PATH=self._PATH)