talloc: use the system pytalloc-util for python3 as well
[sfrench/samba-autobuild/.git] / lib / talloc / test_magic_differs.sh
index 0f765f0e032dc9573c6c4ef28272a1009b1067b1..1b6ba2e4d4557b2d011150f967c964f433abb541 100755 (executable)
@@ -4,10 +4,12 @@
 
 echo "test: magic differs"
 
-if [
-       "`./talloc_test_magic_differs_helper`" != "`./talloc_test_magic_differs_helper`"
-]; then
-       echo "failure: magic remained the same between executions"
+helper=$1
+m1=$($helper)
+m2=$($helper)
+
+if [ $m1 -eq $m2 ]; then
+       echo "failure: magic remained the same between executions ($m1 vs $m2)"
        exit 1
 fi