Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
tools: test_flows: remove extra space from the payload
Browse files Browse the repository at this point in the history
Previously the payload was built by adding a space then the gateway
mac address to the payload variable.  As the variable was initially
empty, the resulting payload contained an extra space at the
beginning.

This commit initializes the payload variable so that there is no space
at the beginning of the resulting payload. As the payload already
contains one mac address when entering the for loop, it has to run one
time less.

Signed-off-by: Raphaël Mélotte <[email protected]>
  • Loading branch information
rmelotte committed Oct 30, 2019
1 parent 0aadeb8 commit a29d3ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/docker/tests/test_flows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ test_higher_layer_data_payload_trigger() {
mac_gateway_hex=$(mac_to_hex $mac_gateway)
dbg "mac_gateway_hex = ${mac_gateway_hex}"
copies=200

for i in `seq 1 $copies`
payload="$mac_gateway_hex"
for i in `seq 1 $(($copies - 1))`
do
payload="$payload $mac_gateway_hex"
done
Expand Down

0 comments on commit a29d3ef

Please sign in to comment.