From patchwork Wed Nov 27 00:23:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver O'Halloran X-Patchwork-Id: 1201256 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47N1jK0zRhz9sRh for ; Wed, 27 Nov 2019 11:24:05 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kRZOV7jt"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 47N1jJ6BdQzDqj1 for ; Wed, 27 Nov 2019 11:24:04 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1044; helo=mail-pj1-x1044.google.com; envelope-from=oohall@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kRZOV7jt"; dkim-atps=neutral Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47N1j90D37zDqM1 for ; Wed, 27 Nov 2019 11:23:56 +1100 (AEDT) Received: by mail-pj1-x1044.google.com with SMTP id w8so9071998pjh.11 for ; Tue, 26 Nov 2019 16:23:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9KrtDxgMyCUU9sxKzUT8JReMqTX50vwUOGt/h92dg/0=; b=kRZOV7jtvp+fTx/hNfBd+9ZnVblkCfM/oM5Z/hAdQdvU+6R/U/Wg5DLoCnL3th3evn sS020YO+zSmsNQQoscFKa7vP2NYAjl7VbwIGkDWhzJiN3YZpWyAXz1BeiZHICtZXzROE +YWcVmpVRgC/qztHZcZCvqBiweN9LJ7/NRGFCtkk3kWEP4jmsLh2nm19iMRJlDagx8gx EklPiz3XFtUljE0k3TxVgWrehoWaQrSY+BBkJ+X3cFkkmsvNWGP2I7jjxLElexSzl1Wl 3RC8+viLUXDRhrq+yoQmxyP8GAei6LTgJYpsbzPEPUUcBs/MalLwhrSOYbzZi13Zn7/i sXZg== 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:mime-version :content-transfer-encoding; bh=9KrtDxgMyCUU9sxKzUT8JReMqTX50vwUOGt/h92dg/0=; b=X2pS1ZR/PPSD16LYg2nxkUJnu7V7HCe09R4x25Iy0qFlMo6Y3JueHIXFFcSKsOBfi7 zrdk7x43EriQa8eavRR44EphG4T85oRSK4NgHoAjHypfl+IEJ0uNoH0SgYLtcu2bxT5H uVpQCEQYtuGU0XNsOpXIdv67ztj7yo8U2D+GeGzPf+8d/dpplX1F4jPj9f+l09pUeDrB iUIu4ixjmShg/FOUPdIDs/X1TYdYAKJR/gi7F56NUe2zBn4oW6Qi5Hx8xE2d3wLhFeSb yVtpDfYTlrtDey/QOs9k6qzHNtdx8birqGKEPnq7hSb04nohDz5iiPEsRn9E2QrI9Shg aJqw== X-Gm-Message-State: APjAAAUhf7Gwu5dlhdRccj35YK0ejP68J6olH2wuBlvLbPzFqPw/mYd5 HUl+mVqMHxq/eobjutvJOnCBVYJ5 X-Google-Smtp-Source: APXvYqwYhXqB6KD/XMbRn6G5Yzatr7JY+bO06U9CIhm4QLsDMYkwzNorH3o0Vh0rmTbZ8Eoot6sUjg== X-Received: by 2002:a17:902:820f:: with SMTP id x15mr1139440pln.125.1574814233149; Tue, 26 Nov 2019 16:23:53 -0800 (PST) Received: from wafer.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id e7sm13912898pfe.173.2019.11.26.16.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 16:23:52 -0800 (PST) From: Oliver O'Halloran To: skiboot@lists.ozlabs.org Date: Wed, 27 Nov 2019 11:23:40 +1100 Message-Id: <20191127002340.10724-1-oohall@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Skiboot] [PATCH] boottests: Print the simulator output if V=1 is set X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Currently we only print it on failures, but sometimes it's nice to see the output in the successful cases too. Signed-off-by: Oliver O'Halloran --- test/hello_world/run_mambo_hello_world.sh | 1 + test/hello_world/run_mambo_p9_hello_world.sh | 1 + test/hello_world/run_qemu_hello_world.sh | 1 + test/run_mambo_boot_test.sh | 1 + test/run_qemu_boot_test.sh | 1 + test/sreset_world/run_mambo_p9_sreset.sh | 1 + test/sreset_world/run_mambo_sreset.sh | 1 + 7 files changed, 7 insertions(+) diff --git a/test/hello_world/run_mambo_hello_world.sh b/test/hello_world/run_mambo_hello_world.sh index d3dbf1f211a3..a9f5b8ad9101 100755 --- a/test/hello_world/run_mambo_hello_world.sh +++ b/test/hello_world/run_mambo_hello_world.sh @@ -58,6 +58,7 @@ if [ $r != 0 ]; then exit $r fi +if [ -n "$V" ] ; then cat "$t" ; fi rm -f -- "$t" trap - EXIT exit 0; diff --git a/test/hello_world/run_mambo_p9_hello_world.sh b/test/hello_world/run_mambo_p9_hello_world.sh index 9c304fdffdb7..e9eee8c394fd 100755 --- a/test/hello_world/run_mambo_p9_hello_world.sh +++ b/test/hello_world/run_mambo_p9_hello_world.sh @@ -58,6 +58,7 @@ if [ $r != 0 ]; then exit $r fi +if [ -n "$V" ] ; then cat "$t" ; fi rm -f -- "$t" trap - EXIT exit 0; diff --git a/test/hello_world/run_qemu_hello_world.sh b/test/hello_world/run_qemu_hello_world.sh index 4f12958d9eda..265add84728e 100755 --- a/test/hello_world/run_qemu_hello_world.sh +++ b/test/hello_world/run_qemu_hello_world.sh @@ -50,6 +50,7 @@ if [ $r != 0 ]; then exit $r fi +if [ -n "$V" ] ; then cat "$t" ; fi rm -f -- "$t" trap - EXIT diff --git a/test/run_mambo_boot_test.sh b/test/run_mambo_boot_test.sh index 9899bde466e4..d08d93f9cac6 100755 --- a/test/run_mambo_boot_test.sh +++ b/test/run_mambo_boot_test.sh @@ -65,6 +65,7 @@ if [ $r != 0 ]; then exit $r fi +if [ -n "$V" ] ; then cat "$t" ; fi rm -f -- "$t" trap - EXIT exit 0 diff --git a/test/run_qemu_boot_test.sh b/test/run_qemu_boot_test.sh index db657eed303b..ee3d9da93148 100755 --- a/test/run_qemu_boot_test.sh +++ b/test/run_qemu_boot_test.sh @@ -55,6 +55,7 @@ if [ $E -eq 3 ]; then exit 0; fi +if [ -n "$V" ] ; then cat "$t" ; fi if [ $E -eq 0 ]; then rm $T else diff --git a/test/sreset_world/run_mambo_p9_sreset.sh b/test/sreset_world/run_mambo_p9_sreset.sh index 4bfa547ba58a..cc19c5849518 100755 --- a/test/sreset_world/run_mambo_p9_sreset.sh +++ b/test/sreset_world/run_mambo_p9_sreset.sh @@ -70,6 +70,7 @@ if [ $r != 0 ]; then exit $r fi +if [ -n "$V" ] ; then cat "$t" ; fi rm -f -- "$t" trap - EXIT exit 0; diff --git a/test/sreset_world/run_mambo_sreset.sh b/test/sreset_world/run_mambo_sreset.sh index 24a8a934a942..298a582f8f9c 100755 --- a/test/sreset_world/run_mambo_sreset.sh +++ b/test/sreset_world/run_mambo_sreset.sh @@ -70,6 +70,7 @@ if [ $r != 0 ]; then exit $r fi +if [ -n "$V" ] ; then cat "$t" ; fi rm -f -- "$t" trap - EXIT exit 0;