From f5ab9c1e77fceca7893449d4aeb763fc9a91562b Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 4 Mar 2011 23:12:08 +0100 Subject: [PATCH] s3:test: improve logging in the net registry roundtrip test steps --- source3/script/tests/test_net_registry_roundtrip.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source3/script/tests/test_net_registry_roundtrip.sh b/source3/script/tests/test_net_registry_roundtrip.sh index eba28a62238..a50e18e6d98 100755 --- a/source3/script/tests/test_net_registry_roundtrip.sh +++ b/source3/script/tests/test_net_registry_roundtrip.sh @@ -50,8 +50,14 @@ s/servername/;&/g REGPATH="HKLM\Software\Samba" conf_roundtrip_step() { - echo $* >>$LOG + echo "CMD: $*" >>$LOG $@ 2>>$LOG + RC=$? + echo "RC: $RC" >> $LOG + test "x$RC" = "x0" || { + echo "ERROR: $@ failed (RC=$RC)" | tee -a $LOG + } + return $RC # echo -n . } -- 2.34.1