提交 b4400823 编写于 作者: K Kalen Krempely 提交者: Kalen Krempely

Behave: Remove unused step

Remove unused behave step:
"the user waits for "{process_name}" to finish running"

(cherry picked from commit 3a3a4b70036925fb0ef11354b76fb20461afe931)
上级 cb5d0ba4
......@@ -1328,19 +1328,6 @@ def impl(context, filename, output):
raise Exception(err_str)
@then('the user waits for "{process_name}" to finish running')
def impl(context, process_name):
run_command(context, "ps ux | grep `which %s` | grep -v grep | awk '{print $2}' | xargs" % process_name)
pids = context.stdout_message.split()
while len(pids) > 0:
for pid in pids:
try:
os.kill(int(pid), 0)
except OSError:
pids.remove(pid)
time.sleep(10)
@given('the gpfdists occupying port {port} on host "{hostfile}"')
def impl(context, port, hostfile):
remote_gphome = os.environ.get('GPHOME')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册