ltp.lists.linux.it archive mirror
 help / color / mirror / Atom feed
* [LTP] [PATCH] commands/df01.sh: print more logs when test fails
@ 2022-07-07 12:58 Jan Stancek
  2022-07-08  2:39 ` xuyang2018.jy
  2022-08-19 15:27 ` Petr Vorel
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Stancek @ 2022-07-07 12:58 UTC (permalink / raw)
  To: ltp

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/commands/df/df01.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testcases/commands/df/df01.sh b/testcases/commands/df/df01.sh
index f74032c962e5..6b20f21d0d74 100755
--- a/testcases/commands/df/df01.sh
+++ b/testcases/commands/df/df01.sh
@@ -103,6 +103,11 @@ df_check()
 
 	grep ${TST_DEVICE} output | grep -q "${total}.*${used}"
 	if [ $? -ne 0 ]; then
+		echo "total: ${total}, used: ${used}"
+		echo "df saved output:"
+		cat output
+		echo "df output:"
+		$@
 		return 1
 	fi
 }
-- 
2.27.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-22 10:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-07 12:58 [LTP] [PATCH] commands/df01.sh: print more logs when test fails Jan Stancek
2022-07-08  2:39 ` xuyang2018.jy
2022-07-12  7:40   ` Jan Stancek
2022-08-19 15:27 ` Petr Vorel
2022-08-20 20:40   ` Jan Stancek
2022-08-22 10:28     ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).