Skip to content

Commit 447322f

Browse files
authored
Merge pull request #226 from stkw0/dev
fix --with-vnc option
2 parents 3289dd3 + b0452b3 commit 447322f

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

ebuildtester/docker.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,11 @@ def _install_basics(self):
343343
self.execute("emerge --verbose %s" %
344344
" ".join(map(str, options.base_packages)))
345345

346+
if options.OPTIONS.with_vnc:
347+
t = ["net-misc/tigervnc", "x11-wm/icewm"]
348+
options.log.info("installing VNC packages: %s" % t)
349+
self.execute("emerge --verbose %s" % " ".join(map(str, t)))
350+
346351
def _enable_global_use(self):
347352
"""Enable global USE settings."""
348353
if not options.OPTIONS.global_use:

ebuildtester/parse.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,6 @@ def parse_commandline(args):
178178
if options.ccache:
179179
options.features.append("ccache")
180180

181-
if options.with_vnc:
182-
options.atom += ["net-misc/tigervnc", "x11-wm/icewm"]
183-
184181
options.atom = list(map(Atom, options.atom))
185182

186183
if options.update in ["yes", "true"]:

test/test_parse.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ def test_python_targets(self):
8080
self.args + ["--manual", "--python-targets", "python3_8"])
8181
self.assertEqual("python3_8", options.python_targets)
8282

83-
def test_with_vnc(self):
84-
options = ebuildtester.parse.parse_commandline(
85-
self.args + ["--manual", "--with-vnc"])
86-
self.assertTrue(options.with_vnc)
87-
self.assertTrue(Atom("net-misc/tigervnc") in options.atom)
88-
self.assertTrue(Atom("x11-wm/icewm") in options.atom)
89-
9083
def test_docker_image(self):
9184
options = ebuildtester.parse.parse_commandline(
9285
self.args + ["--manual"])

0 commit comments

Comments
 (0)