Skip to content

Commit

Permalink
[face_detector][test] Shorter test duration (bag files are less than …
Browse files Browse the repository at this point in the history
…7 seconds).

[face_detector][test] Shorter test_duration. We only need a second or so as long as we can confirm the designated topic is being published.
  • Loading branch information
130s committed Feb 17, 2017
1 parent e5e2ab4 commit d18780c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions face_detector/test/common_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<launch>
<arg name="expected_success" default="true" />
<arg name="hz" default="30.0" />
<arg name="hztest_duration" default="2.0" />
<arg name="hz_error" default="29.9" />
<arg name="RETRY_TEST" default="5" />
<arg name="testnode_name" default="hztest1" />
Expand All @@ -14,17 +15,17 @@
<test test-name="hztest_noface_$(arg testnode_name)" pkg="rostest" type="hztest" name="$(arg testnode_name)" retry="$(arg RETRY_TEST)">
<param name="topic" value="face_detector/people_tracker_measurements_array" />
<param name="hz" value="0.0" />
<param name="test_duration" value="15.0" />
<param name="test_duration" value="$(arg hztest_duration)" />
</test>
</group>
<group if="$(arg expected_success)">
<node pkg="rosbag" type="play" name="play" args="-r 0.5 $(find face_detector)/test/face_detector_withface_test_diamondback.bag"/>

<test test-name="hztest_withface_$(arg topicname_hztest)" pkg="rostest" type="hztest" name="$(arg testnode_name)" retry="$(arg RETRY_TEST)">
<param name="topic" value="$(arg expected_success)" />
<param name="topic" value="$(arg topicname_hztest)" />
<param name="hz" value="$(arg hz)" />
<param name="hzerror" value="$(arg hz_error)" />
<param name="test_duration" value="15.0" />
<param name="test_duration" value="$(arg hztest_duration)" />
</test>
</group>
</launch>

0 comments on commit d18780c

Please sign in to comment.