def test_checkout_scripts():
    scs = []
    for i in range(0,5):
        scs.append(MonkScript('ddd'+str(i),"echo "+str(i)))

    runner = ScriptsRunner(ui=Console())
    runner.checkout_scripts(scs)
Beispiel #2
0
    def on_apply(self, btn):
        sel=self.tool_list.left_pane.get_selection()
        list=self.tool_list.left_pane.get_model()
        it=list.iter_nth_child( None, list.iter_n_children(None)-1 )
        sel.select_iter(it)
        self.tool_list.left_pane.set_sensitive(False)
        self.apply_btn.set_sensitive(False)
        self.clear_btn.set_sensitive(False)

        selected_scripts = []
        for page in self.tool_list.all_tools:
            for (used, path, tool) in page.list:
                if used == True:
                    selected_scripts.append(tool.script)

        runner = ScriptsRunner(self)
        runner.run_scripts(selected_scripts)
        self.final_page.term.connect('child-exited', self.on_complete)