Message ID | 20180525133851.27161-2-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="HF3ghXCv"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40snRg0Xb9z9s15 for <incoming@patchwork.ozlabs.org>; Fri, 25 May 2018 23:39:41 +1000 (AEST) Received: from localhost ([::1]:44041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1fMCwS-0004u2-9Z for incoming@patchwork.ozlabs.org; Fri, 25 May 2018 09:39:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fMCvq-0004td-0a for qemu-devel@nongnu.org; Fri, 25 May 2018 09:38:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fMCvn-0005sM-6a for qemu-devel@nongnu.org; Fri, 25 May 2018 09:38:58 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:56085) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fMCvm-0005s4-WB for qemu-devel@nongnu.org; Fri, 25 May 2018 09:38:55 -0400 Received: by mail-wm0-x243.google.com with SMTP id a8-v6so14494734wmg.5 for <qemu-devel@nongnu.org>; Fri, 25 May 2018 06:38:54 -0700 (PDT) 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=icyhNd5KQavNcvfAeUvX27EOWr3MXvhI7RrpNDKrgu0=; b=HF3ghXCv64QdJoy69rKC47nGs0d8kjrMk02fYMICt+rSumlk4Mn0afBzDe71NrP2PI wTMk6rEWbyYKz6pf4bbGNPHIvVer61noc6h3LooeNFUrt97tVtWV25I2zIgB44Ui+qsQ Y3Rvz5e7N/BHQjfFjlAOKe9RMkWYnECJN/gqA= 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=icyhNd5KQavNcvfAeUvX27EOWr3MXvhI7RrpNDKrgu0=; b=PMSx6GHiIgNYgS59OI5d80gVlWtqEYmVUgGhQrqW7U5zqEEDAzLQ2zMJZhPoGfl1Uc C2N48wjjJkFXXMaA7I2VqO/llZrJviaQ0TsgJlU4KGL/n+JArGza9NZmAZEGjTeOAHNR fWV479uAVFnUCw3eWICTYvb1Snkf+y1pnSRtDqNSMfMdC0EPIXXSQkhrwwwaVbIXqrup nExb8WDvjlFHDDUA5YEABZUOUIG/blPGdSs7SzbreKMy/53rAcBy9eG8nOtUlK4rh0O8 OKJNgxua5fusejh6A5d2+oByozXfXhBUxk+X8PBYM2OMN4GCVz9IXJEilwqfytIGn/kp 7puw== X-Gm-Message-State: ALKqPwecuzhq4Ml0yZCYSy6I7s+ug81SIQmv7mVxj7d9Gqm1EgnOy8/E TvgP3y0HtiX/q9W91PHDKeWP/Q== X-Google-Smtp-Source: ADUXVKIjVwEK87VvUgg9XF2Q7PZiX/5M0jK1ExZj97i3nZPQvapEuRRz9ijGGziZutTRwv56uXxIPA== X-Received: by 2002:a1c:5403:: with SMTP id i3-v6mr1765318wmb.37.1527255533887; Fri, 25 May 2018 06:38:53 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id s2-v6sm3450574wrn.75.2018.05.25.06.38.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 May 2018 06:38:51 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 5A2963E027A; Fri, 25 May 2018 14:38:51 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> 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: Fri, 25 May 2018 14:38:03 +0100 Message-Id: <20180525133851.27161-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180525133851.27161-1-alex.bennee@linaro.org> References: <20180525133851.27161-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH v5 01/49] docker: add "probe" command for configure X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
fix buildings of tests/tcg
|
expand
|
diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 1246ba9578..f8267586eb 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -390,6 +390,24 @@ class ImagesCommand(SubCommand): def run(self, args, argv): return Docker().command("images", argv, args.quiet) + +class ProbeCommand(SubCommand): + """Probe if we can run docker automatically""" + name = "probe" + + def run(self, args, argv): + try: + docker = Docker() + if docker._command[0] == "docker": + print "yes" + elif docker._command[0] == "sudo": + print "sudo" + except Exception: + print "no" + + return + + def main(): parser = argparse.ArgumentParser(description="A Docker helper", usage="%s <subcommand> ..." % os.path.basename(sys.argv[0]))