Skip to content

Instantly share code, notes, and snippets.

View happz's full-sized avatar

Miloš Prchlík happz

  • Red Hat
  • Brno, Czech Republic
View GitHub Profile
@happz
happz / t
Created August 16, 2022 14:54
@@ -281,7 +287,12 @@ class ProvisionTestcloud(tmt.steps.provision.ProvisionPlugin):
data = TestcloudGuestData(**{
key: self.get(key)
for key in TestcloudGuestData.keys()
+ if key not in ('memory', 'disk')
})
+
+ data.memory = int(self.get('memory') or DEFAULT_MEMORY)
+ data.disk = int(self.get('disk') or DEFAULT_DISK)
+
diff --git a/tmt/steps/provision/__init__.py b/tmt/steps/provision/__init__.py
index 772013f..a77ed61 100644
--- a/tmt/steps/provision/__init__.py
+++ b/tmt/steps/provision/__init__.py
@@ -255,6 +255,16 @@ class GuestData(tmt.utils.SerializableContainer):
# hostname or ip address
guest: Optional[str] = None
+ def from_input(self, obj: tmt.steps.BasePlugin) -> None:
+ for field in dataclasses.fields(self):
[pts-4:0]: mprchlik@multivac [resource-cleanup-delay] ~/git/CI/artemis/server $ git ci -a -m 'f' && git rebase -i HEAD~2
isort....................................................................Passed
Check for added large files..............................................Passed
Check python ast.........................................................Passed
Check docstring is first.................................................Passed
Check that executables have shebangs.................(no files to check)Skipped
Check for merge conflicts................................................Passed
Check for broken symlinks............................(no files to check)Skipped
Check Toml...........................................(no files to check)Skipped
Check Yaml...........................................(no files to check)Skipped
##
# Load variables
#
# !include ~/.citool.d/variables.yaml
# !import-variables ~/.citool.d/variables.yaml
##
# DevTools
- '{{ DevTools.build_target.brew }}':
if i == 1:
return board[:3]
elif i == 2:
return board[3:6]
elif i == 3:
return board[6:]
if i == 1:
return board[:3]
import collections
problems_and_solutions = collections.defaultdict(list)
for problem, solution in L:
problems_and_solutions[problem].append(solution)
print(problems_and_solutions)
import collections
problems_and_solutions = collections.defaultdict(list)
for problem, solution in L:
problems_and_solutions[problem].append(solution)
print(problems_and_solutions)
L = [
(1, 'a'),
(2, 'b'),
(2, 'c'),
(3, 'a')
]
problems_and_solutions = {
problem: sorted(sum([[_solution] for _problem, _solution in L if _problem == problem], []))
for problem, _ in L
Sep 30 03:22:13 fanny spamd[2110]: spamd: result: . 4 - FONT_INVIS_MSGID,FROM_FMBLA_NEWDOM,HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,LONGWORDS,MIME_HTML_ONLY,MIME_QP_LONG_LINE,T_KAM_HTML_FONT_INVALID,UNPARSEABLE_RELAY scantime=0.2,size=7093,user=milter,uid=111,required_score=5.0,rhost=127.0.0.1,raddr=127.0.0.1,rport=50962,mid=<WzqzL2P56Yv2r1u9Q2ddbukdLSVGVMhLpKRzwUAKMWE.xfF4VvOW1OL6i47FRmWhTrpn3kdX_cLGCdbWtoPFgdw@fateround.cyou>,autolearn=disabled,shortcircuit=no
Sep 30 03:23:44 fanny spamd[2110]: spamd: result: . 4 - FONT_INVIS_MSGID,FROM_FMBLA_NEWDOM,HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,LONGWORDS,MIME_HTML_ONLY,MIME_QP_LONG_LINE,T_KAM_HTML_FONT_INVALID,UNPARSEABLE_RELAY scantime=0.3,size=7361,user=milter,uid=111,required_score=5.0,rhost=127.0.0.1,raddr=127.0.0.1,rport=56694,mid=<gkcgw1_VlSCiYXr6WallaXLP99_T_1_9uKrbP4-Ln78.xvTgzO3L8k7YThNaprXC7gaspqFMa2IkUxnAj65nZaw@fateround.cyou>,autolearn=disabled,shortcircuit=no
Sep 30 04:10:04 fanny spamd[2110]: spamd: result: . 2 -
YES: from appc-srvb.prod (appc-srvb.prod [127.0.0.1]) by appc-srvb.prod.aws.gopay.com (Postfix) with ESMTP id 3574C40E9C6 for <happz@happz.cz>; Wed, 30 Sep 2020 11:55:23 +0200 (CEST)
NO: from modelpit.cyou (unknown) by fanny.happz.cz(Postfix 3.4.7/8.13.0) with SMTP id unknown; Wed, 30 Sep 2020 11:43:15 +0200 (envelope-from jet@modelpit.cyou>)