From 721c1cc4f380326bd26458423df89eabee40847c Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Wed, 20 May 2020 15:04:42 +0800 Subject: [PATCH] add fuser -k -n tcp 6030 to release network port. --- .travis.yml | 2 ++ tests/pytest/test.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9bc576dcf9..9fefa61f8c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,7 @@ matrix: - python3-pip - python3-setuptools - valgrind + - psmisc before_script: - cd ${TRAVIS_BUILD_DIR} @@ -142,6 +143,7 @@ matrix: - python3-pip - python3-setuptools - lcov + - psmisc before_script: - cd ${TRAVIS_BUILD_DIR} diff --git a/tests/pytest/test.py b/tests/pytest/test.py index 9d76b0a70e..ab08b08db2 100644 --- a/tests/pytest/test.py +++ b/tests/pytest/test.py @@ -79,6 +79,9 @@ if __name__ == "__main__": time.sleep(1) processID = subprocess.check_output(psCmd, shell=True) + fuserCmd = "fuser -k -n tcp 6030" + subprocess.check_output(fuserCmd, shell=True) + tdLog.info('stop All dnodes') sys.exit(0) -- GitLab