Fix Python indent

This commit is contained in:
Christophe Bedard 2019-06-17 10:20:15 +02:00
parent f5871e1141
commit 8704f0591d
8 changed files with 60 additions and 51 deletions

View file

@ -20,7 +20,8 @@ class TestNode(unittest.TestCase):
session_name_prefix = 'session-test-node-creation'
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,
node_creation_events,
None,

View file

@ -19,7 +19,8 @@ class TestPublisher(unittest.TestCase):
session_name_prefix = 'session-test-publisher-creation'
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,
publisher_creation_events,
None,

View file

@ -20,7 +20,8 @@ class TestService(unittest.TestCase):
session_name_prefix = 'session-test-service-creation'
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,
service_creation_events,
None,

View file

@ -20,7 +20,8 @@ class TestServiceCallback(unittest.TestCase):
session_name_prefix = 'session-test-service-callback'
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,
service_callback_events,
None,

View file

@ -20,7 +20,8 @@ class TestSubscription(unittest.TestCase):
session_name_prefix = 'session-test-subscription-creation'
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,
subscription_creation_events,
None,

View file

@ -20,7 +20,8 @@ class TestSubscriptionCallback(unittest.TestCase):
session_name_prefix = 'session-test-subscription-callback'
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,
subscription_callback_events,
None,

View file

@ -22,7 +22,8 @@ class TestTimer(unittest.TestCase):
session_name_prefix = 'session-test-timer-all'
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,
timer_events,
None,

View file

@ -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,
ros_events,
kernel_events,
@ -41,7 +42,8 @@ def run_and_trace(base_path,
nodes = []
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,
output='screen')
nodes.append(n)