Skip to content

Commit

Permalink
test: Avoid using 'truncate' command
Browse files Browse the repository at this point in the history
The 'truncate' command is not available on all platforms. Since the
command was being used to zero out a file, there are other easy options
available. In this case, I've replaced 'truncate' with a redirection.

Reported-by: Alin Gabriel Serdean <[email protected]>
Signed-off-by: Mark Michelson <[email protected]>
Tested-by: Alin Gabriel Serdean <[email protected]>
Acked-by: Alin Gabriel Serdean <[email protected]>
Signed-off-by: Alin Gabriel Serdean <[email protected]>
  • Loading branch information
putnopvut authored and aserdean committed Sep 11, 2017
1 parent d5c70d4 commit 3a0c580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ovn.at
Original file line number Diff line number Diff line change
Expand Up @@ -8501,7 +8501,7 @@ ovn-nbctl --wait=hv --timeout=3 sync
# doesn't have the same effect because "name" is conserved, and the
# Chassis entry is not replaced.

truncate -s 0 gw1/ovn-controller.log
> gw1/ovn-controller.log

gw2_chassis=$(ovn-sbctl --bare --columns=_uuid find Chassis name=gw2)
ovn-sbctl destroy Chassis $gw2_chassis
Expand Down

0 comments on commit 3a0c580

Please sign in to comment.