summaryrefslogtreecommitdiff
path: root/dev-ros/rosmsg/files/tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ros/rosmsg/files/tests.patch')
-rw-r--r--dev-ros/rosmsg/files/tests.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-ros/rosmsg/files/tests.patch b/dev-ros/rosmsg/files/tests.patch
new file mode 100644
index 000000000000..f8b514b4e127
--- /dev/null
+++ b/dev-ros/rosmsg/files/tests.patch
@@ -0,0 +1,15 @@
+Index: rosmsg/test/test_rosmsg_command_line.py
+===================================================================
+--- rosmsg.orig/test/test_rosmsg_command_line.py
++++ rosmsg/test/test_rosmsg_command_line.py
+@@ -168,8 +168,8 @@ class TestRosmsg(unittest.TestCase):
+
+ # test as search
+ type_ = t
+- text = "[test_rosmaster/%s]:\n%s"%(t, text)
+- text_raw = "[test_rosmaster/%s]:\n%s"%(t, text_raw)
++ text = ("[test_rosmaster/%s]:\n%s"%(t, text))*2
++ text_raw = ("[test_rosmaster/%s]:\n%s"%(t, text_raw))*2
+ output = Popen(['rosmsg', 'show', type_], stdout=PIPE).communicate()[0].decode()
+ self.assertEquals(text, output)
+ output = Popen(['rosmsg', 'show', '-r',type_], stdout=PIPE, stderr=PIPE).communicate()