Skip to content

Commit 4df177b

Browse files
Run rmw-related test_tracetools test with rmw_cyclonedds_cpp
Signed-off-by: Christophe Bedard <[email protected]>
1 parent 077008b commit 4df177b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

test_tracetools/test/test_pub_sub.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import unittest
1616

17+
from launch.actions import SetEnvironmentVariable
1718
from tracetools_test.case import TraceTestCase
1819
from tracetools_trace.tools import tracepoints as tp
1920

@@ -39,6 +40,8 @@ def __init__(self, *args) -> None:
3940
],
4041
package='test_tracetools',
4142
nodes=['test_ping', 'test_pong'],
43+
# Need rmw_cyclonedds_cpp for the rmw instrumentation
44+
additional_actions=SetEnvironmentVariable('RMW_IMPLEMENTATION', 'rmw_cyclonedds_cpp'),
4245
)
4346

4447
def test_all(self):

test_tracetools/test/test_publisher.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import unittest
1717

18+
from launch.actions import SetEnvironmentVariable
1819
from tracetools_test.case import TraceTestCase
1920
from tracetools_trace.tools import tracepoints as tp
2021

@@ -35,6 +36,8 @@ def __init__(self, *args) -> None:
3536
],
3637
package='test_tracetools',
3738
nodes=['test_publisher'],
39+
# Need rmw_cyclonedds_cpp for the rmw instrumentation
40+
additional_actions=SetEnvironmentVariable('RMW_IMPLEMENTATION', 'rmw_cyclonedds_cpp'),
3841
)
3942

4043
def test_all(self):

test_tracetools/test/test_subscription.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import unittest
1818

19+
from launch.actions import SetEnvironmentVariable
1920
from tracetools_test.case import TraceTestCase
2021
from tracetools_trace.tools import tracepoints as tp
2122

@@ -41,6 +42,8 @@ def __init__(self, *args) -> None:
4142
],
4243
package='test_tracetools',
4344
nodes=['test_ping', 'test_pong'],
45+
# Need rmw_cyclonedds_cpp for the rmw instrumentation
46+
additional_actions=SetEnvironmentVariable('RMW_IMPLEMENTATION', 'rmw_cyclonedds_cpp'),
4447
)
4548

4649
def test_all(self):

0 commit comments

Comments
 (0)