From nobody Wed Nov 5 01:55:04 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 153185877011158.825950248170216; Tue, 17 Jul 2018 13:19:30 -0700 (PDT) Received: from localhost ([::1]:33046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffWRV-0002Qp-3I for importer@patchew.org; Tue, 17 Jul 2018 16:19:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffWBY-0000cm-6R for qemu-devel@nongnu.org; Tue, 17 Jul 2018 16:03:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffWBX-0001je-9O for qemu-devel@nongnu.org; Tue, 17 Jul 2018 16:03:00 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:37082) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ffWBX-0001j1-23 for qemu-devel@nongnu.org; Tue, 17 Jul 2018 16:02:59 -0400 Received: by mail-wm0-x235.google.com with SMTP id a19-v6so566036wmb.2 for ; Tue, 17 Jul 2018 13:02:58 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 185-v6sm767082wmw.23.2018.07.17.13.02.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 13:02:52 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id DBC233E0C98; Tue, 17 Jul 2018 20:55:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2hyT9r7n/kLLoC+J5hjkAOX9XXtoKXwld53Aqui1SWQ=; b=DAGjvORwaddBCYIeH5hOiBtm75uCUhgCA3zb4r1WBKpbK2jPvATyEmzZ6aDY2asabF kA2Gd7UZ4TtRH8bRVZeLhHm1zLkt4CYESSHfr7kN9o55oVhaeUMpSw9vcQsjnAyUZ9KQ sjW4c4wOLMyZFkOGIcwvSSdtkY2gYw3V8brrw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2hyT9r7n/kLLoC+J5hjkAOX9XXtoKXwld53Aqui1SWQ=; b=HvxsXE4v2rqS8MBoZSfACf/bLq14mdVOQdcU7tIVv11hFcaKA9id4/46NE2xMd07hW GYPQFgi2dI4IIPwlc+bG5eFu3eZSMBqPcNiCn+kejLKjG9sWoH/lbUxVKCJDqX9V1osy NxGKmQ0wX+p2DCvNqn+GwCWo2phLrPavT6v/Sw49vw/U17a3FGpMEglNhgU+w7Gp6nsD J7zUePH8CdXWYrRF+iyPgAluR8dtBZEhhh5zQF5XFZCvVwSQhjDUavdLrA4Oqu2nw++l QWkuYJlfDLK+7R47B3ja3mZ3wO8+/5WnCLZQA44a4/9r9HSxSCHN85Gqa5Z8fBnc4hr/ 33lQ== X-Gm-Message-State: AOUpUlFiRpUfuH4fUqwbvaEWdSYPKfC+yXDRbZZwyPz7fh2gnxOJB6rX mhVCCQPmsCOjSHTtHvwc93U1pA== X-Google-Smtp-Source: AAOMgpcU2CejaEQeVtJAUF6i99NFNiV5ZOR5T0HUBFpyIm/LlAJei49GEKBU706Lmd+1VOa8olTcHw== X-Received: by 2002:a1c:70b:: with SMTP id 11-v6mr2189078wmh.151.1531857777876; Tue, 17 Jul 2018 13:02:57 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 17 Jul 2018 20:55:48 +0100 Message-Id: <20180717195553.9111-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180717195553.9111-1-alex.bennee@linaro.org> References: <20180717195553.9111-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::235 Subject: [Qemu-devel] [PATCH v3 for 3.0 13/18] docker: add --hint to docker.py check X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 When a check fails we currently just report why we failed. This is not totally helpful to people who want to boot-strap a new image. Add a --hint option which we can pass down to give a bit more information. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- tests/docker/Makefile.include | 3 ++- tests/docker/docker.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index ec23620153..c9e412f9d0 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -73,7 +73,8 @@ docker-binfmt-image-debian-%: $(DOCKER_FILES_DIR)/debian-= bootstrap.docker $(if $(EXECUTABLE),--include-executable=3D$(EXECUTABLE)), \ "BUILD","binfmt debian-$* (debootstrapped)"), \ $(call quiet-command, \ - $(DOCKER_SCRIPT) check --quiet qemu:debian-$* $<, \ + $(DOCKER_SCRIPT) check --quiet qemu:debian-$* $< \ + --hint "you will need to build $(EXECUTABLE)", \ "CHECK", "debian-$* exists")) =20 endif diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 2f81c6b13b..523f4b95a2 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -475,6 +475,7 @@ class CheckCommand(SubCommand): default=3D"checksum", help=3D"check type") parser.add_argument("--olderthan", default=3D60, type=3Dint, help=3D"number of minutes") + parser.add_argument("--hint", default=3D"", help=3D"hint to user") =20 def run(self, args, argv): tag =3D args.tag @@ -487,7 +488,7 @@ class CheckCommand(SubCommand): =20 info =3D dkr.inspect_tag(tag) if info is None: - print("Image does not exist") + print("Image does not exist %s" % (args.hint)) return 1 =20 if args.checktype =3D=3D "checksum": --=20 2.17.1