2016-01-12 13:08:43 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
2015-08-20 02:57:30 +02:00
|
|
|
|
|
|
|
cd "$(dirname "$0")"/..
|
|
|
|
|
|
|
|
email=iago@zulip.com
|
|
|
|
|
|
|
|
password=$(python manage.py print_initial_password "$email" | fgrep "$email" | awk '{ print $2 }')
|
2015-10-14 00:21:23 +02:00
|
|
|
cat > frontend_tests/casper_lib/test_credentials.js <<EOF
|
2015-08-20 02:57:30 +02:00
|
|
|
// Generated by tools/generate-test-credentials
|
2016-04-13 04:49:47 +02:00
|
|
|
var test_credentials = {default_user: {username: '$email', password: '$password'}};
|
2015-08-20 02:57:30 +02:00
|
|
|
try { exports.test_credentials = test_credentials; } catch (e) {}
|
|
|
|
EOF
|