From patchwork Tue Jul 23 10:36:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 169505 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp8707567ilk; Tue, 23 Jul 2019 03:41:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqS53gfPC18I8eBfm4RcRYYM3IdmRXpwTVZrGytGJJeC8pwjSWJHzMHJ5Aqr+1GO5/lks7 X-Received: by 2002:a0c:e508:: with SMTP id l8mr55587869qvm.198.1563878517374; Tue, 23 Jul 2019 03:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563878517; cv=none; d=google.com; s=arc-20160816; b=L7wGVp67njMRkPCo1jIDPMrcJqaLQ8O5UkyxN/j92jQxVppal40DXIqxaUH656ksMC +TU9/Bi2q3726yF6Ax/o7wq9RaNmHhppKXyR+oXDr1KBweLZkuCtgdHWCj6WYio0OT9B xYrtC5kKIFkyg/yHrshFYZu9B/0g1iLpoiV9Pq+y7RWvhV9Xx/dOnGN/lboBdGxk8CVq AVshEXhmpPpp2zUoBYheiAvVdKbA4E7Lw5sPZtIjbcnrrPPG/Cr8/UidqwmnjB16iMnp hp3Rjn0BHb0sTgUS6Cf9gGzU3T1JL6+GRw+AEWaI6QVEeZCg3wcavaDUaVfqa40OElKI /9Ng== 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; bh=xaoZEvLN4IL9Dt8w+scYYy+PugidW1l4kvvMHsOXzQw=; b=NvnH/LxXSt3ic3714RYN8jP7shGRk3GENFyZj1aE+X9Ori3tJy++DyZcoULAj7GTs4 fJqIj36+zH6akIh9wchqfWKVo8I+cNEq3lWj+eAeRBjYb7pbpj3vQuT0GK1b+ERnJmTm eqtLhPFv2W4WpvFY7LfK3LCrcoDy1yoBiMGutpAtpW0srFM4a9lctABKCzjgdU4DvCHg rfozF79HaFzltvMuLkvAwUnyRg1TND4kwHqNa3I1LhMQRN3fJoKSlG/3OBzKzRdfuFr2 xnHBOEdr7ASkNJG9vS3eBOn9jNXP8iKTJeYRMHEEgrI3s0jffzVbRh0HAZpS16jaz88M loxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=X3RIdHG5; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r28si29464020qvc.33.2019.07.23.03.41.57 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jul 2019 03:41:57 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=X3RIdHG5; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:41070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpsF2-0002Cy-T3 for patch@linaro.org; Tue, 23 Jul 2019 06:41:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39606) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpsEz-0002Cs-LY for qemu-devel@nongnu.org; Tue, 23 Jul 2019 06:41:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpsEx-000494-M4 for qemu-devel@nongnu.org; Tue, 23 Jul 2019 06:41:53 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:33145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hpsEx-00047w-Dp for qemu-devel@nongnu.org; Tue, 23 Jul 2019 06:41:51 -0400 Received: by mail-wr1-x433.google.com with SMTP id n9so42701142wru.0 for ; Tue, 23 Jul 2019 03:41:50 -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=xaoZEvLN4IL9Dt8w+scYYy+PugidW1l4kvvMHsOXzQw=; b=X3RIdHG5aIpTTYg8zSKcH8ADDJ/41HKij53VpMtS+vv49SxNYelzSh3yMLGdYqcGu1 FUnEZVMIXxPNTUK7r3cXdfgVSejp4Le6E7g5iYJU2MRPagO+neFMf04RRI7RQJZW2/RR OMvfXPpXfu3UEo5mwdN+SdHDUjGoBts3YD1m1vyWvfZIX9kPLV73XE4iamrLAfg8SHsZ r8lZ492t6eVl0FGf773Tqsm3PK7haGyYCC+1P3s+zWmeDklu/Uvrne4ZpatSSJSGtBw0 2qKUCjWw1r7Gd7ygTagW4pxOIt/VGNxYF/PYmUGuk1OzaUhtfVTxJkSCZ1vWT+l0Mb+X F6tA== 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=xaoZEvLN4IL9Dt8w+scYYy+PugidW1l4kvvMHsOXzQw=; b=Z0U+jG4P89OyWKuOhnits1a7MBGUumlLVwSfM5ITc0o3tGyk4WLwvhvK55X6/jskuq GIFCP83L/aBigLNtrAc6r6vP9/P9fo7Dzfj5L4m1MZAOrq7YQnSiV67wqoPykJ46JdhE HHHLVYw7CfwPugvB7x6OAs62+yO113LXGHNAw3R3ToiE5v6xQ+FdIa6lCVt8kWALpMYk kAstVfprujBNzNxzDQc7Y9wZhY3U/ETLR7844aRJrruVNDu5UbFGGBwPI+6G+uYhuTz/ ZwMiEm+25QNfnA6ZYlgDzL9y4Gd4UD3xADOm+SwTZDBqlEqVYPhqwCCobqQwUzKltqtU rFdA== X-Gm-Message-State: APjAAAUlh2yucgO+4zqwqPybOUJjcvSh5nG2WLUt/qouxjaG0Mhgpx5l dVl47Q/sRyRiwKSVWywzr9g74Q== X-Received: by 2002:adf:b612:: with SMTP id f18mr70121603wre.97.1563878509818; Tue, 23 Jul 2019 03:41:49 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c7sm35490750wro.70.2019.07.23.03.41.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 23 Jul 2019 03:41:48 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0E9671FFA6; Tue, 23 Jul 2019 11:36:14 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 23 Jul 2019 11:36:08 +0100 Message-Id: <20190723103612.5600-20-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190723103612.5600-1-alex.bennee@linaro.org> References: <20190723103612.5600-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::433 Subject: [Qemu-devel] [PULL 19/23] tests/docker: invoke the DEBUG shell with --noprofile/--norc X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" It's very confusing when things work in the debug shell because the environment is different from what the test is running. Fix this by ensuring we only have the inherited environment from the run shell. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé -- 2.20.1 diff --git a/tests/docker/run b/tests/docker/run index 7aebf4b5698..1014871fec0 100755 --- a/tests/docker/run +++ b/tests/docker/run @@ -62,7 +62,7 @@ echo "* Prepared to run command:" echo " $CMD" echo "* Hit Ctrl-D to continue, or type 'exit 1' to abort" echo -$SHELL +$SHELL --noprofile --norc if "$CMD"; then exit 0 @@ -72,7 +72,7 @@ elif test -n "$DEBUG"; then echo "* Hit Ctrl-D to exit" echo # Force error after shell exits - $SHELL && exit 1 + $SHELL --noprofile --norc && exit 1 else exit 1 fi