Browse files

nice cleanup in tests

  • Loading branch information...
1 parent 5abde07 commit 8ae032566db1936c2a8169c648202ef709069eb1 BuzzTroll committed Jun 15, 2010
Showing with 7 additions and 1 deletion.
  1. +1 −1 cumulus/src/pycb/test_common.py
  2. +6 −0 cumulus/src/tests/run-all.sh
View
2 cumulus/src/pycb/test_common.py
@@ -45,7 +45,7 @@ def cb_get_conn(host, port, id, pw):
def make_user():
global user_count
type = pycb.config.sec_type
- display_name = "test%d@nosetests.nimbus.org" % (user_count)
+ display_name = "test%d%s@nosetests.nimbus.org" % (user_count, random_string(10))
user_count = user_count + 1
id = random_string(21)
View
6 cumulus/src/tests/run-all.sh
@@ -4,6 +4,12 @@ cd ..
source env.sh
cd -
+echo "Cleaning up"
+echo "==========="
+
+sqlite3 -line $NIMBUS_AUTHZ_DB "delete from user_alias where friendly_name like '%nosetests.nimbus.org'"
+
+
echo "Running without security"
echo "=========================="

0 comments on commit 8ae0325

Please sign in to comment.