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

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
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/setup/generate-test-credentials
var test_credentials = {default_user: {username: '$email', password: '$password'}};
try { exports.test_credentials = test_credentials; } catch (e) {}
EOF