mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 15:23:56 +08:00
Added PID support
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# If there is a PID file from the e2e tests...
|
||||
if [ -e /tmp/talk-e2e.pid ]
|
||||
then
|
||||
|
||||
# Then kill the running talk server.
|
||||
kill $(cat /tmp/talk-e2e.pid)
|
||||
|
||||
fi
|
||||
+5
-4
@@ -4,12 +4,13 @@
|
||||
selenium-standalone install
|
||||
|
||||
# Creating Admin Test User
|
||||
./bin/cli-users create --flag_mode --email "admin@test.com" --password "testtest" --name "AdminTestUser" --role "admin"
|
||||
./bin/cli users create --flag_mode --email "admin@test.com" --password "testtest" --name "AdminTestUser" --role "admin"
|
||||
|
||||
# Creating Moderator Test User
|
||||
./bin/cli-users create --flag_mode --email "moderator@test.com" --password "testtest" --name "ModeratorTestUser" --role "moderator"
|
||||
./bin/cli users create --flag_mode --email "moderator@test.com" --password "testtest" --name "ModeratorTestUser" --role "moderator"
|
||||
|
||||
# Creating Commenter Test User
|
||||
./bin/cli-users create --flag_mode --email "commenter@test.com" --password "testtest" --name "CommenterTestUser"
|
||||
./bin/cli users create --flag_mode --email "commenter@test.com" --password "testtest" --name "CommenterTestUser"
|
||||
|
||||
./bin/cli -c .env-e2e serve --jobs &
|
||||
# Start the server and write the PID to a file to be killed later.
|
||||
./bin/cli --pid /tmp/talk-e2e.pid serve --jobs &
|
||||
|
||||
Reference in New Issue
Block a user