Message ID | 20180525133851.27161-2-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3603885lji; Fri, 25 May 2018 06:39:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLA6t/DPPbXM0kdaYxH7MVcDH4VWMgpReAstpw+MurjOkSNjnNmixKe9XR6eH7FUmiqiaf7 X-Received: by 2002:ac8:2ce7:: with SMTP id 36-v6mr2173274qtx.375.1527255558329; Fri, 25 May 2018 06:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527255558; cv=none; d=google.com; s=arc-20160816; b=C6Cybfm3xmbP2wFnILrdleUInd/9+TZhm31KYg+yfcyr4HVZgPgJGMXiymu6KzJcq5 fYg1kDOLWw7dPqb1cCBbdqgHR5a6WVkfiJ/Vlz0fJqICY19yOfdJgOxi0r4EwN2spBiB 03WAG82A+ZdJGx4pfuQfS+c2zlzMzIfTE/ZruNYa5TE8X/s1ygk6Isn+ZefXWN22K5q4 LXzwJpeoarNARsuPZ+h6pXj3SGysopsdUnUFErVrIa25UFeArii1Q6IHRpGMj3p5tktf TIXXkMce2W41ORSDUW2iZO2EvsaHPno8xSL2RgRoOiS3jVQL5zr5YHvG1xTi3AhW9pL/ 02Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=icyhNd5KQavNcvfAeUvX27EOWr3MXvhI7RrpNDKrgu0=; b=GSl+RhDibdLwf+UcRsK7KG0zgFnAzIT96RnxppFezVE9Gw9VHbqs/RWMtKKvjCdEZI U/1To+Ny19onVGo4SCM4y5DX7ZEXt9jyTwo1mh7SjDS5yAhT0tmwXgan6E4FAtIrCjyH Jdex5fxBhnN1ZlSXvR8D/DUs+qTMmoIw8fVovgERjW3cc2boemPnJRNujp9rkfJ8t0nm VDk8stK4ZnADVLOnn+hhcavnXZF9OL5xJwK4iIhfs76NHVmgKh5+v6fVZmFnHa7GGjPX beAPGatDzMExiJ8w1h6yTnl/jBzuVKVNzWxqjRQ8kXmlhlKdsrBi+UhupmySNfiP0z0b tpog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HF3ghXCv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 76-v6si3583146qkv.323.2018.05.25.06.39.18 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 May 2018 06:39:18 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HF3ghXCv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1fMCw9-0004u2-PZ for patch@linaro.org; Fri, 25 May 2018 09:39:17 -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-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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.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]))