[rtems-central commit] validation: Fix coding style
Sebastian Huber
sebh at rtems.org
Thu Feb 4 13:26:58 UTC 2021
Module: rtems-central
Branch: master
Commit: 44a5c59cc3d3a2819482bc2727d62a9c6e81db56
Changeset: http://git.rtems.org/rtems-central/commit/?id=44a5c59cc3d3a2819482bc2727d62a9c6e81db56
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Feb 4 10:06:17 2021 +0100
validation: Fix coding style
---
rtemsspec/tests/test_validation.py | 6 +++---
rtemsspec/validation.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/rtemsspec/tests/test_validation.py b/rtemsspec/tests/test_validation.py
index 0103d00..78bbcf7 100644
--- a/rtemsspec/tests/test_validation.py
+++ b/rtemsspec/tests/test_validation.py
@@ -865,7 +865,7 @@ T_TEST_CASE( Tc )
{
/* Test case prologue code */
- T_plan(125);
+ T_plan( 125 );
/* Test case action 0 code */
/* Test case action 0 check 0 code: Accounts for 123 test plan steps */
@@ -1241,7 +1241,7 @@ T_TEST_CASE_FIXTURE( Rtm, &Rtm_Fixture )
*/
T_TEST_CASE( Tc3 )
{
- T_plan(1);
+ T_plan( 1 );
/* Test case 3 action 0 code */
/* Test case 3 action 0 check 0 code; step 0 */
@@ -1299,7 +1299,7 @@ T_TEST_CASE( Tc4 )
static void Tc5_Wrap( int *a, int b, int *c )
{
- T_plan(2);
+ T_plan( 2 );
/* Test case action 0 code */
/* Test case action 0 check 0 code */
diff --git a/rtemsspec/validation.py b/rtemsspec/validation.py
index 51b602d..648e787 100644
--- a/rtemsspec/validation.py
+++ b/rtemsspec/validation.py
@@ -388,7 +388,7 @@ class _TestItem:
with content.function(ret, name, params, align=align):
content.add(self.substitute_code(self["test-prologue"]))
if self._mapper.steps > 0:
- content.add(f"T_plan({self._mapper.steps});")
+ content.add(f"T_plan( {self._mapper.steps} );")
content.add(actions)
content.add(self.substitute_code(self["test-epilogue"]))
if header and fixture:
More information about the vc
mailing list