mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
Move tools/generate-test-credentials to tools/setup/.
This commit is contained in:
@@ -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'))
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user