Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Aug 5 12:50:07 UTC 2025 on atb-devel-224
-#!/bin/sh
+#!/bin/bash
+
+# Disabling history expansion temporarily
+# This is needed, as the tdb key can include e.g. !6
+set +H
WBINFO="$VALGRIND ${WBINFO:-$BINDIR/wbinfo}"
samba_tdbtool=tdbtool
opnum=$($PYTHON -c'from samba.dcerpc.winbind import wbint_LookupRids; print(wbint_LookupRids.opnum())')
key=$("$TDBDUMP" "$cache" | awk -F'"' -v opnum="${opnum}" '/key.*NDR/ { regex = "NDR/[^/]+/" opnum "/.*$"; if (match($2, regex)) print substr($2, RSTART, RLENGTH) }')
-testit "delete" "$TDBTOOL" "$cache" delete "$key"
+testit "delete key" "$TDBTOOL" "$cache" delete "$key" || failed=$((failed + 1))
testit "lookuprids2" "$WBINFO" "-R" "512,12345" || failed=$(expr $failed + 1)
testok $0 $failed