Esempio n. 1
0
 def test_run_script(self):
     echo_path = BashScript(ECHO_PATH_SH, config.tmp_path)
     echo_path.run()
Esempio n. 2
0
 def test_read_output(self):
     hello_world = BashScript(HELLO_WORLD_SH, config.tmp_path)
     self.assertEqual(hello_world.output(), 'Hello World')
Esempio n. 3
0
 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)
Esempio n. 4
0
 def version(self):
     return BashScript(self._data['version'],
                       self.tmp_path,
                       cwd=self.source_path,
                       PATH=self._PATH).output()
Esempio n. 5
0
 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)
Esempio n. 6
0
 def test_read_output(self):
     hello_world = BashScript(HELLO_WORLD_SH, config.tmp_path)
     self.assertEqual(hello_world.output(), 'Hello World')
Esempio n. 7
0
 def test_run_script(self):
     echo_path = BashScript(ECHO_PATH_SH, config.tmp_path)
     echo_path.run()