mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-20 23:36:21 +08:00
[client-app] Remove sudo from benchmark-initial-sync.sh
Summary: We created the process so we can also kill it with no problems. This makes it easier to automatically run benchmarks without human intervention. Test Plan: Run locally Reviewers: spang, evan, juan Reviewed By: juan Differential Revision: https://phab.nylas.com/D4332
This commit is contained in:
parent
e06f729275
commit
f629818075
|
@ -21,9 +21,6 @@ then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
# Run sudo to prime root privileges
|
||||
sudo ls > /dev/null
|
||||
|
||||
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
NYLAS_DIR="$HOME/.nylas-dev"
|
||||
EDGEHILL_DB="$NYLAS_DIR/edgehill.db"
|
||||
|
@ -39,7 +36,7 @@ do
|
|||
sleep $TIME_LIMIT
|
||||
|
||||
ELECTRON_PID=`ps aux | grep "Electron packages/client-app" | grep -v grep | awk '{print $2}'`
|
||||
sudo kill -9 $ELECTRON_PID
|
||||
kill -9 $ELECTRON_PID
|
||||
|
||||
MESSAGE_COUNT=`sqlite3 $EDGEHILL_DB 'SELECT COUNT(*) FROM Message'`
|
||||
echo "Synced Messages: $MESSAGE_COUNT"
|
||||
|
|
Loading…
Reference in a new issue