Skip to content

Commit bcdd8dc

Browse files
k-risterportante
authored andcommitted
pbench-trafficgen: capture trex yaml config file
- Includes unit test update
1 parent c7d3589 commit bcdd8dc

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

agent/bench-scripts/gold/pbench-trafficgen/test-22.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ Iteration 3-revunidirectional-74B-1000flows-0.0pct_drop complete (3 of 0), with
197197
/var/tmp/pbench-test-bench/pbench/tools-default/sar
198198
/var/tmp/pbench-test-bench/pbench/trafficgen_test-22_1900.01.01T00.00.00
199199
/var/tmp/pbench-test-bench/pbench/trafficgen_test-22_1900.01.01T00.00.00/metadata.log
200+
/var/tmp/pbench-test-bench/pbench/trex_cfg.yaml
200201
--- pbench tree state
201202
+++ pbench.log file contents
202203
/var/tmp/pbench-test-bench/pbench/pbench.log:[debug][1900-01-01T00:00:00.000000] [pbench-trafficgen]processing options

agent/bench-scripts/pbench-trafficgen

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,14 @@ mkdir -p $benchmark_run_dir/.running
846846
echo "$script_name $pbench_cmd" >$benchmark_run_dir/$script_name.cmd
847847
chmod +x $benchmark_run_dir/$script_name.cmd
848848

849+
if [ "${postprocess_only}" == "n" ]; then
850+
if [ $traffic_generator == "trex-txrx" -o $traffic_generator == "trex-txrx-profile" ]; then
851+
if [ $skip_trex_server == "n" ]; then
852+
cp ${pbench_tmp}/trex_cfg.yaml ${benchmark_run_dir}
853+
fi
854+
fi
855+
fi
856+
849857
function record_default_iteration {
850858
local count=$1
851859
local direction=$2
-1.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)