From a0d0fe28bfad7adbfd7eea09b97356c6c3787085 Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Jun 04 2019 10:34:15 +0000 Subject: Sort container repos This avoids issues in tests where the order was sometimes incorrectly marking test as failed. Signed-off-by: Lubomír Sedlář --- diff --git a/compose_utils/essentials.py b/compose_utils/essentials.py index 9c63b0a..21bb580 100644 --- a/compose_utils/essentials.py +++ b/compose_utils/essentials.py @@ -52,7 +52,7 @@ def get_containers(compose): def _format_container(nvr, name, repos): - return " * %s (%s)\n%s" % (nvr, name, "\n".join(" - %s" % r for r in repos)) + return " * %s (%s)\n%s" % (nvr, name, "\n".join(" - %s" % r for r in sorted(repos))) def get_images(compose, types=["qcow2"]):