Skip to content

Commit fcb29ab

Browse files
Hook25Copilotfernando79513
authored
Translator from pxu to yaml (New) (#2316)
* PXU to YAML translator without complete comment support * Test SplitStringable * New tests for job unit + bugfixes * Draft tests for test plan test * Support comments on top level values Minor: drop unit key ordering, it is not the role of a translator and it breaks comments * Test new translator * Carry over header comments Minor: clarify why assertion may blow up translator * Add packaging pyproject environment * Only run translator tests on latest, skip momst of them on others * Also test on py3.12 and explain why the dep is there * Python3.5 fun fun fun * More coverage for jinja ignore and all comment branches * Fix command being split for comments These fields are not supposed to be changed, must be transferred over as is * Don't translate jinja templates in depends * Apply code review suggestions Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Fernando Bravo <39527354+fernando79513@users.noreply.github.com> * Remove assertions and raise RuntimeError * Improve installation instructions formatting * Re-format test_translator.py * Fix typo in library name --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Fernando Bravo <39527354+fernando79513@users.noreply.github.com>
1 parent 15cd934 commit fcb29ab

6 files changed

Lines changed: 1059 additions & 1 deletion

File tree

checkbox-ng/checkbox_ng/launcher/checkbox_cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
from checkbox_ng.launcher.controller import RemoteController
4848
from checkbox_ng.launcher.agent import RemoteAgent
4949

50+
from checkbox_ng.launcher.translator import Translator
51+
5052
_ = gettext.gettext
5153

5254
_logger = logging.getLogger("checkbox-cli")
@@ -109,6 +111,7 @@ def main():
109111
"tp-export": TestPlanExport,
110112
"run-agent": RemoteAgent,
111113
"control": RemoteController,
114+
"translate": Translator,
112115
}
113116
deprecated_commands = {
114117
"slave": "run-agent",

0 commit comments

Comments
 (0)