Skip to content

Commit

Permalink
clear users dir
Browse files Browse the repository at this point in the history
  • Loading branch information
seanenck committed Feb 9, 2017
1 parent ebca270 commit d4c3e48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mods-config/python/tests/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ user=""
mac_multi=""
ALT="alt.json"
OUT="actual.log"
USRS="../utils/users/"
cat network.json | grep -v "blacklist" | head -n -1 > $ALT
echo ',"blacklist":[]}' >> $ALT
for b in $(echo $blacklist); do
Expand Down Expand Up @@ -68,7 +69,10 @@ if [ $? -ne 0 ]; then
exit -1
fi

cp *.py ../utils/users/
for f in $(echo "b c u v"); do
rm -f ${USRS}$f*
done
cp *.py $USRS
OUT_JSON="actual.json"
python2.7 ../utils/config_compose.py --output $OUT_JSON
diff expected.json $OUT_JSON
Expand Down

0 comments on commit d4c3e48

Please sign in to comment.