Merge pull request #5315 from taosdata/xiaoping/add_test_case
add sudo to avoid systemctl password
This commit is contained in:
commit
ecf5daae66
|
@ -11,8 +11,8 @@ import java.util.Properties;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
public class RestfulStatementTest {
|
public class RestfulStatementTest {
|
||||||
// private static final String host = "127.0.0.1";
|
private static final String host = "127.0.0.1";
|
||||||
private static final String host = "master";
|
// private static final String host = "master";
|
||||||
private static Connection conn;
|
private static Connection conn;
|
||||||
private static Statement stmt;
|
private static Statement stmt;
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ IN_TDINTERNAL="community"
|
||||||
|
|
||||||
function stopTaosd {
|
function stopTaosd {
|
||||||
echo "Stop taosd"
|
echo "Stop taosd"
|
||||||
systemctl stop taosd
|
sudo systemctl stop taosd
|
||||||
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
|
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
|
||||||
while [ -n "$PID" ]
|
while [ -n "$PID" ]
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue