|  | 
| list | broken_tutorials = [] | 
|  | list of the broken tutorials (to be removed when they are individually fixed) 
 | 
|  | 
Test to run all B2A6XX tutorials. Will fail if no tutorial directory is found.
 
Definition at line 21 of file tutorials_B2A6XX.py.
◆ test_tutorials()
      
        
          | def test_tutorials | ( |  | self | ) |  | 
      
 
Test supported tutorials.
 
Definition at line 31 of file tutorials_B2A6XX.py.
   31     def test_tutorials(self):
 
   33         Test supported tutorials. 
   35         configure_logging_for_tests()
 
   36         all_tutorials = sorted(glob.glob(find_file(
'analysis/examples/tutorials/') + 
"/B2A6*.py"))
 
   37         for tutorial 
in all_tutorials:
 
   38             filename = os.path.basename(tutorial)
 
   39             if filename 
not in self.broken_tutorials:
 
   40                 with self.subTest(msg=filename):
 
   41                     outputfilename = filename.replace(
'.py', 
'.root')
 
   42                     result = subprocess.run([
'basf2', 
'-n100', tutorial, 
'-o', outputfilename],
 
   43                                             stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
 
   44                     if result.returncode != 0:
 
   48                         sys.stdout.buffer.write(result.stdout)
 
   49                     self.assertEqual(result.returncode, 0)
 
   51                     if os.path.exists(outputfilename):
 
   52                         scanTTree(outputfilename)
 
 
 
The documentation for this class was generated from the following file: