ソースを参照

testing/infra: Add docstrings to base test classes

It wasn't immediately obvious to me what the two Buildroot base test
classes were for, so add docstrings to explain the differences between
BRConfigTest and BRTest.

Signed-off-by: Thomas Preston <thomas.preston@codethink.co.uk>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thomas Preston 5 年 前
コミット
a2f11c0cbf
1 ファイル変更2 行追加0 行削除
  1. 2 0
      support/testing/infra/basetest.py

+ 2 - 0
support/testing/infra/basetest.py

@@ -29,6 +29,7 @@ MINIMAL_CONFIG = \
 
 
 
 
 class BRConfigTest(unittest.TestCase):
 class BRConfigTest(unittest.TestCase):
+    """Test up to the configure stage."""
     config = None
     config = None
     br2_external = list()
     br2_external = list()
     downloaddir = None
     downloaddir = None
@@ -66,6 +67,7 @@ class BRConfigTest(unittest.TestCase):
 
 
 
 
 class BRTest(BRConfigTest):
 class BRTest(BRConfigTest):
+    """Test up to the build stage and instantiate an emulator."""
     def __init__(self, names):
     def __init__(self, names):
         super(BRTest, self).__init__(names)
         super(BRTest, self).__init__(names)
         self.emulator = None
         self.emulator = None