Introduction

Robot keyword library (Resource) for killing possibly left-over Python utilities.

Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.

This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html

This library assumes that a SSH connections exists (and is switched to) to a Linux machine (usualy TOOLS_SYSTEM_IP) where the Python process should be killed. TODO: The Utils.robot library has a "Run Command On Remote System" if we didn't want to make the assumption that an SSH connection was already open. alternative TODO: Explain that it is not worth to perform separate SSH logins.

The argument ${filter} should hold what you would type to grep command in bash: enclosed in single quotes, dots escaped by backslash and so on. Note that single quote inside cannot be escaped, but may be typed as this: '"'"'

Keywords

Arguments

pself_lines signal
= 9

Documentation

Kill processes by PIDs from given list (no-op if the list is empty), using specified signal. Log the kill commands used.

Arguments

filter

Documentation

The main keyword. Search for processes, Log the list of them, kill them.

Arguments

filter

Documentation

Only searches for the list of processes, in case something else than kill has to be done with them.

KillPythonTool

image/svg+xml