Tool for checking that .robot files went through robot.tidy 83/27583/5
authorJozef Behran <jbehran@cisco.com>
Tue, 29 Sep 2015 13:07:39 +0000 (15:07 +0200)
committerJozef Behran <jbehran@cisco.com>
Mon, 5 Oct 2015 11:58:15 +0000 (13:58 +0200)
commit2637986fa551436dd633f28f5ae4d2c39fa785e2
tree8f23e4abb0eec41e8b2f0b54de341c9aa9026081
parentf25307248179146500437ff57b0f8d15b7a3381a
Tool for checking that .robot files went through robot.tidy

This adds a tool that traverses the specified directories and
either checks that all of the .robot files were passed
through the robot.tidy tool (when "check" is specified as the
command) or performs the "tidying" (when "tidy" is specified
as command). A convenience shell script is provided that
orders the tool to traverse the entire test project and check
(or tidy them if "tidy" argument is given to it) all .robot
files it finds whether they are tidy.

I built this tool in about 2 hours after I got bugged by "did
you run the test through 'tidy'" kinds of requests. When the
"check" version is wired to the validation jobs, this kind of
answers can now be obtained automatically.

Change-Id: I8540f14ba81b55394f2a3285130dea6e945d6649
Signed-off-by: Jozef Behran <jbehran@cisco.com>
tools/robot_check/tidy.sh [new file with mode: 0644]
tools/robot_check/tidytool.py [new file with mode: 0644]