Behave: Remove unused step
Remove unused behave step:
"the user waits for "{process_name}" to finish running"
@@ -1335,19 +1335,6 @@ def impl(context, filename, output):
if output not in cmd.get_stdout():
raise Exception('File %s on host %s does not contain "%s"' % (filepath, host, output))
-@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')
