diff options
author | Michael Adam <obnox@samba.org> | 2011-03-04 23:12:08 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-03-05 01:31:32 +0100 |
commit | f5ab9c1e77fceca7893449d4aeb763fc9a91562b (patch) | |
tree | c5d4b25b1fd2ba15ada7ce719e486ba324a108e9 /source3/script/tests | |
parent | eade61ae035caba607b2f31af7561b8b35059139 (diff) | |
download | samba-f5ab9c1e77fceca7893449d4aeb763fc9a91562b.tar.gz samba-f5ab9c1e77fceca7893449d4aeb763fc9a91562b.tar.bz2 samba-f5ab9c1e77fceca7893449d4aeb763fc9a91562b.zip |
s3:test: improve logging in the net registry roundtrip test steps
Diffstat (limited to 'source3/script/tests')
-rwxr-xr-x | source3/script/tests/test_net_registry_roundtrip.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/script/tests/test_net_registry_roundtrip.sh b/source3/script/tests/test_net_registry_roundtrip.sh index eba28a6223..a50e18e6d9 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 . } |