1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

selftest: Ensure we catch errors from samba-tool domain tombstones expunge

The previous code would overwrite $? before the return, so always returned 0

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12297
(cherry picked from commit 44d209c893d28030cb9928b974c8aa31348ac395)
This commit is contained in:
Andrew Bartlett 2016-11-07 11:58:04 +13:00 committed by Karolin Seeger
parent b37023877b
commit 7a23c894c4

View File

@ -52,7 +52,7 @@ tombstones_expunge() {
$PYTHON $BINDIR/samba-tool domain tombstones expunge -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb --current-time=2016-07-30 --tombstone-lifetime=4 > $tmpfile
if [ "$?" != "0" ]; then
return $?
return 1
fi
diff $tmpfile $release_dir/expected-expunge-output.txt
if [ "$?" != "0" ]; then