- support tags in vpp-verify-perfomance-* jenkins jobs
Change-Id: I7e3abfe9e552a3f2fa9ebf95df9b48bcbae3561a
Signed-off-by: pmikus <pmikus@cisco.com>
# On script exit we cancel the reservation and delete all vpp packages
trap "cancel_reservation ${WORKING_TOPOLOGY}" EXIT
# On script exit we cancel the reservation and delete all vpp packages
trap "cancel_reservation ${WORKING_TOPOLOGY}" EXIT
-# run performance test suite
-pybot -L TRACE \
- -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
- -s performance tests/
+
+if [ ! -z "$TEST_TAG" ]; then
+# run specific performance tests by tag if variable is set
+ pybot -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -i $TEST_TAG tests/
+else
+# run full performance test suite
+ pybot -L TRACE \
+ -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \
+ -s performance tests/
+fi
from resources.libraries.python.ssh import SSH
def main():
from resources.libraries.python.ssh import SSH
def main():
+ """Copy and installation of VPP packages."""
+
parser = argparse.ArgumentParser()
parser.add_argument("-t", "--topo", required=True,
help="Topology file")
parser = argparse.ArgumentParser()
parser.add_argument("-t", "--topo", required=True,
help="Topology file")
# Copy packages from local path to installation dir
for deb in packages:
# Copy packages from local path to installation dir
for deb in packages:
- ssh.scp(local_path=deb,remote_path=install_dir)
+ ssh.scp(local_path=deb, remote_path=install_dir)
# Installation of VPP deb packages
# Installation of VPP deb packages
- ret, _, err = ssh.exec_command("dpkg -i {}*.deb".format(install_dir))
+ ret, _, err = ssh.exec_command_sudo(
+ "dpkg -i {}*.deb".format(install_dir))
- print("Installation unsuccessful:\n{}".format(err))
+ print "Installation unsuccessful:\n{}".format(err)
return ret
if __name__ == "__main__":
return ret
if __name__ == "__main__":