Fix Python indent
This commit is contained in:
parent
f5871e1141
commit
8704f0591d
8 changed files with 60 additions and 51 deletions
|
@ -20,7 +20,8 @@ class TestNode(unittest.TestCase):
|
||||||
session_name_prefix = 'session-test-node-creation'
|
session_name_prefix = 'session-test-node-creation'
|
||||||
test_node = ['test_publisher']
|
test_node = ['test_publisher']
|
||||||
|
|
||||||
exit_code, full_path = run_and_trace(BASE_PATH,
|
exit_code, full_path = run_and_trace(
|
||||||
|
BASE_PATH,
|
||||||
session_name_prefix,
|
session_name_prefix,
|
||||||
node_creation_events,
|
node_creation_events,
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -19,7 +19,8 @@ class TestPublisher(unittest.TestCase):
|
||||||
session_name_prefix = 'session-test-publisher-creation'
|
session_name_prefix = 'session-test-publisher-creation'
|
||||||
test_node = ['test_publisher']
|
test_node = ['test_publisher']
|
||||||
|
|
||||||
exit_code, full_path = run_and_trace(BASE_PATH,
|
exit_code, full_path = run_and_trace(
|
||||||
|
BASE_PATH,
|
||||||
session_name_prefix,
|
session_name_prefix,
|
||||||
publisher_creation_events,
|
publisher_creation_events,
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -20,7 +20,8 @@ class TestService(unittest.TestCase):
|
||||||
session_name_prefix = 'session-test-service-creation'
|
session_name_prefix = 'session-test-service-creation'
|
||||||
test_nodes = ['test_service']
|
test_nodes = ['test_service']
|
||||||
|
|
||||||
exit_code, full_path = run_and_trace(BASE_PATH,
|
exit_code, full_path = run_and_trace(
|
||||||
|
BASE_PATH,
|
||||||
session_name_prefix,
|
session_name_prefix,
|
||||||
service_creation_events,
|
service_creation_events,
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -20,7 +20,8 @@ class TestServiceCallback(unittest.TestCase):
|
||||||
session_name_prefix = 'session-test-service-callback'
|
session_name_prefix = 'session-test-service-callback'
|
||||||
test_nodes = ['test_service_ping', 'test_service_pong']
|
test_nodes = ['test_service_ping', 'test_service_pong']
|
||||||
|
|
||||||
exit_code, full_path = run_and_trace(BASE_PATH,
|
exit_code, full_path = run_and_trace(
|
||||||
|
BASE_PATH,
|
||||||
session_name_prefix,
|
session_name_prefix,
|
||||||
service_callback_events,
|
service_callback_events,
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -20,7 +20,8 @@ class TestSubscription(unittest.TestCase):
|
||||||
session_name_prefix = 'session-test-subscription-creation'
|
session_name_prefix = 'session-test-subscription-creation'
|
||||||
test_node = ['test_subscription']
|
test_node = ['test_subscription']
|
||||||
|
|
||||||
exit_code, full_path = run_and_trace(BASE_PATH,
|
exit_code, full_path = run_and_trace(
|
||||||
|
BASE_PATH,
|
||||||
session_name_prefix,
|
session_name_prefix,
|
||||||
subscription_creation_events,
|
subscription_creation_events,
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -20,7 +20,8 @@ class TestSubscriptionCallback(unittest.TestCase):
|
||||||
session_name_prefix = 'session-test-subscription-callback'
|
session_name_prefix = 'session-test-subscription-callback'
|
||||||
test_nodes = ['test_ping', 'test_pong']
|
test_nodes = ['test_ping', 'test_pong']
|
||||||
|
|
||||||
exit_code, full_path = run_and_trace(BASE_PATH,
|
exit_code, full_path = run_and_trace(
|
||||||
|
BASE_PATH,
|
||||||
session_name_prefix,
|
session_name_prefix,
|
||||||
subscription_callback_events,
|
subscription_callback_events,
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -22,7 +22,8 @@ class TestTimer(unittest.TestCase):
|
||||||
session_name_prefix = 'session-test-timer-all'
|
session_name_prefix = 'session-test-timer-all'
|
||||||
test_nodes = ['test_timer']
|
test_nodes = ['test_timer']
|
||||||
|
|
||||||
exit_code, full_path = run_and_trace(BASE_PATH,
|
exit_code, full_path = run_and_trace(
|
||||||
|
BASE_PATH,
|
||||||
session_name_prefix,
|
session_name_prefix,
|
||||||
timer_events,
|
timer_events,
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -16,7 +16,8 @@ from tracetools_trace.tools.lttng import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def run_and_trace(base_path,
|
def run_and_trace(
|
||||||
|
base_path,
|
||||||
session_name_prefix,
|
session_name_prefix,
|
||||||
ros_events,
|
ros_events,
|
||||||
kernel_events,
|
kernel_events,
|
||||||
|
@ -41,7 +42,8 @@ def run_and_trace(base_path,
|
||||||
|
|
||||||
nodes = []
|
nodes = []
|
||||||
for node_name in node_names:
|
for node_name in node_names:
|
||||||
n = launch_ros.actions.Node(package=package_name,
|
n = launch_ros.actions.Node(
|
||||||
|
package=package_name,
|
||||||
node_executable=node_name,
|
node_executable=node_name,
|
||||||
output='screen')
|
output='screen')
|
||||||
nodes.append(n)
|
nodes.append(n)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue