]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/lib.sh
Make traffic describing parameters common for all tests
[can-benchmark.git] / gw-tests / lib.sh
index 72d635e661a03b29afc9b39fe04983b266814282..0d7fe2c43193df15ce77454870604cd21a2a6d9d 100644 (file)
@@ -70,6 +70,10 @@ echo_plot() {
     echo -n "    " $plot
 }
 
+traffic_and_length() {
+    echo -o -l $1
+}
+
 _run() {
     if [[ ! "$OPT_PLOT_ONLY" ]]; then
        kernel_versions=$(sshgw uname -r)
@@ -119,7 +123,7 @@ _myexit() {
        error "bug in the test script: No test_end called"
     fi
     if ! test -n "$exit_ok"; then
-       error "FATAL: Command '$cmd' exited with code $code"
+       error "FATAL: Command '$cmd' exit with code $code"
     fi
 }