summaryrefslogtreecommitdiffstats
path: root/rtemsspec
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-04 10:06:17 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-04 14:23:25 +0100
commit44a5c59cc3d3a2819482bc2727d62a9c6e81db56 (patch)
tree3444f00a3df0c88f9ba7cded9c4f9617136f98f3 /rtemsspec
parentspec: Use quoted string for string with tabs (diff)
downloadrtems-central-44a5c59cc3d3a2819482bc2727d62a9c6e81db56.tar.bz2
validation: Fix coding style
Diffstat (limited to 'rtemsspec')
-rw-r--r--rtemsspec/tests/test_validation.py6
-rw-r--r--rtemsspec/validation.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/rtemsspec/tests/test_validation.py b/rtemsspec/tests/test_validation.py
index 0103d004..78bbcf7e 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 51b602df..648e7879 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: