Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit deefefc

Browse files
committed
clitest: Have fake virtinst URI set a repeatable UUID
1 parent 68c64b6 commit deefefc

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

tests/clitest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,9 +1005,6 @@ def run_tests(do_app, do_category):
10051005

10061006
# Strip --debug to get reasonable output
10071007
cmdstr = cmdstr.replace("--debug ", "").replace("-d ", "")
1008-
if not cmdstr.count("--uuid"):
1009-
cmdstr += " --uuid 00000000-1111-2222-3333-444444444444"
1010-
10111008
if app == "virt-install":
10121009
if (not cmdstr.count("--print-xml") and
10131010
not cmdstr.count("--print-step") and

virtinst/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def fakemkstemp(prefix, *args, **kwargs):
8383
tempfile.mkstemp = fakemkstemp
8484

8585
_util.randomMAC = lambda type_: "00:11:22:33:44:55"
86+
_util.uuidToString = lambda r: "00000000-1111-2222-3333-444444444444"
8687

8788
# Fake remote status
8889
if "remote" in opts:

0 commit comments

Comments
 (0)