s3-test Make samba3.blackbox.net.local.registry.roundtrip reliable
authorAndrew Bartlett <abartlet@samba.org>
Wed, 27 Apr 2011 10:29:16 +0000 (20:29 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 Apr 2011 11:10:30 +0000 (21:10 +1000)
Looking for smb.conf files with find -name \*.conf would find and not
find all sorts of things that were just not valid inputs.  When
restricted to under source3 it then finds no inputs in the top level
build, as it only worked on the generated smb.conf files from 'make
test' environments.

Instead, just run it on the one file we know is valid, and if we want
to run it on more files, then we can make this test run against more
environments, or specific target files.

Andrew Bartlett

source3/script/tests/test_net_registry_roundtrip.sh

index f35a7524281bf7bcce6dc3822940eee0a74f9ac2..33114ccd4c0c08d2e473a1c9b8cd9554eeb080e0 100755 (executable)
@@ -7,7 +7,7 @@
 
 if [ $# -lt 3 ]; then
 cat <<EOF
-Usage: test_net_registry_roundtrip.sh SCRIPTDIR SERVERCONFFILE CONFIGURATION
+Usage: test_net_registry_roundtrip.sh SCRIPTDIR SERVERCONFFILE PREFIX CONFIGURATION
 EOF
 exit 1;
 fi
@@ -144,7 +144,7 @@ conf_roundtrip()
     rm -r $DIR
 }
 
-CONF_FILES=${CONF_FILES:-$(find $SRCDIR/source3 -name '*.conf' | grep -v examples/logon | xargs grep -l "\[global\]")}
+CONF_FILES=$SERVERCONFFILE
 
 # remove old logs:
 for OLDDIR in $(find ${PREFIX} -type d -name "${LOGDIR_PREFIX}_*") ; do