Move tools/generate-test-credentials to tools/setup/.

This commit is contained in:
Umair Khan 2016-05-26 15:36:22 +05:00
parent d5f3a82284
commit 8335bd672f
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ os.chdir(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))
subprocess.check_call('tools/generate-fixtures')
subprocess.check_call('tools/generate-test-credentials')
subprocess.check_call('tools/setup/generate-test-credentials')
subprocess.check_call(['rm', '-f'] + glob.glob('/tmp/casper-failure*.png'))

View File

@ -1,13 +1,13 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"/..
cd "$(dirname "$0")"/../..
email=iago@zulip.com
password=$(python manage.py print_initial_password "$email" | fgrep "$email" | awk '{ print $2 }')
cat > frontend_tests/casper_lib/test_credentials.js <<EOF
// Generated by tools/generate-test-credentials
// Generated by tools/setup/generate-test-credentials
var test_credentials = {default_user: {username: '$email', password: '$password'}};
try { exports.test_credentials = test_credentials; } catch (e) {}
EOF