From eee866f42bd0fc8472e6295b4f26bd0697e59f1f Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Mon, 18 Jan 2016 22:00:51 +0200 Subject: regression: corrections of benchmarks move packet builder tests to functional folder add CPU utilization boundries for more tests print Skipping message fix relative drop counting API: convert hostname to IP at init of client side (trex_client.py) various: move python path determination to external common file add functional tests running bash script add sudo check to t-rex-64 --- scripts/t-rex-64 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/t-rex-64') diff --git a/scripts/t-rex-64 b/scripts/t-rex-64 index d33cc3e8..1cf82489 100755 --- a/scripts/t-rex-64 +++ b/scripts/t-rex-64 @@ -1,4 +1,9 @@ #! /bin/bash +if [ $USER != 'root' ]; then + echo 'Error: Please run as root (sudo etc.)' + exit -1 +fi + ./trex-cfg $@ RESULT=$? if [ $RESULT -ne 0 ]; then -- cgit 1.2.3-korg