@@ -462,50 +462,53 @@ def create_wrapper_function(mode: TestingMode = TestingMode.BEHAVIOR) -> ast.Fun
462462        ),
463463        * (
464464            [
465+                 ast .Assign (
466+                     targets = [ast .Name (id = "test_stdout_tag" , ctx = ast .Store ())],
467+                     value = ast .JoinedStr (
468+                         values = [
469+                             ast .FormattedValue (value = ast .Name (id = "test_module_name" , ctx = ast .Load ()), conversion = - 1 ),
470+                             ast .Constant (value = ":" ),
471+                             ast .FormattedValue (
472+                                 value = ast .IfExp (
473+                                     test = ast .Name (id = "test_class_name" , ctx = ast .Load ()),
474+                                     body = ast .BinOp (
475+                                         left = ast .Name (id = "test_class_name" , ctx = ast .Load ()),
476+                                         op = ast .Add (),
477+                                         right = ast .Constant (value = "." ),
478+                                     ),
479+                                     orelse = ast .Constant (value = "" ),
480+                                 ),
481+                                 conversion = - 1 ,
482+                             ),
483+                             ast .FormattedValue (value = ast .Name (id = "test_name" , ctx = ast .Load ()), conversion = - 1 ),
484+                             ast .Constant (value = ":" ),
485+                             ast .FormattedValue (value = ast .Name (id = "function_name" , ctx = ast .Load ()), conversion = - 1 ),
486+                             ast .Constant (value = ":" ),
487+                             ast .FormattedValue (value = ast .Name (id = "loop_index" , ctx = ast .Load ()), conversion = - 1 ),
488+                             ast .Constant (value = ":" ),
489+                             ast .FormattedValue (value = ast .Name (id = "invocation_id" , ctx = ast .Load ()), conversion = - 1 ),
490+                         ]
491+                     ),
492+                     lineno = lineno  +  9 ,
493+                 ),
465494                ast .Expr (
466495                    value = ast .Call (
467496                        func = ast .Name (id = "print" , ctx = ast .Load ()),
468497                        args = [
469498                            ast .JoinedStr (
470499                                values = [
471-                                     ast .Constant (value = "!######" ),
500+                                     ast .Constant (value = "!$ ######" ),
472501                                    ast .FormattedValue (
473-                                         value = ast .Name (id = "test_module_name " , ctx = ast .Load ()), conversion = - 1 
502+                                         value = ast .Name (id = "test_stdout_tag " , ctx = ast .Load ()), conversion = - 1 
474503                                    ),
475-                                     ast .Constant (value = ":" ),
476-                                     ast .FormattedValue (
477-                                         value = ast .IfExp (
478-                                             test = ast .Name (id = "test_class_name" , ctx = ast .Load ()),
479-                                             body = ast .BinOp (
480-                                                 left = ast .Name (id = "test_class_name" , ctx = ast .Load ()),
481-                                                 op = ast .Add (),
482-                                                 right = ast .Constant (value = "." ),
483-                                             ),
484-                                             orelse = ast .Constant (value = "" ),
485-                                         ),
486-                                         conversion = - 1 ,
487-                                     ),
488-                                     ast .FormattedValue (value = ast .Name (id = "test_name" , ctx = ast .Load ()), conversion = - 1 ),
489-                                     ast .Constant (value = ":" ),
490-                                     ast .FormattedValue (
491-                                         value = ast .Name (id = "function_name" , ctx = ast .Load ()), conversion = - 1 
492-                                     ),
493-                                     ast .Constant (value = ":" ),
494-                                     ast .FormattedValue (value = ast .Name (id = "loop_index" , ctx = ast .Load ()), conversion = - 1 ),
495-                                     ast .Constant (value = ":" ),
496-                                     ast .FormattedValue (
497-                                         value = ast .Name (id = "invocation_id" , ctx = ast .Load ()), conversion = - 1 
498-                                     ),
499-                                     ast .Constant (value = "######!" ),
504+                                     ast .Constant (value = "######$!" ),
500505                                ]
501506                            )
502507                        ],
503508                        keywords = [],
504509                    )
505-                 )
510+                 ), 
506511            ]
507-             if  mode  ==  TestingMode .BEHAVIOR 
508-             else  []
509512        ),
510513        ast .Assign (
511514            targets = [ast .Name (id = "exception" , ctx = ast .Store ())], value = ast .Constant (value = None ), lineno = lineno  +  10 
@@ -598,56 +601,30 @@ def create_wrapper_function(mode: TestingMode = TestingMode.BEHAVIOR) -> ast.Fun
598601                keywords = [],
599602            )
600603        ),
601-         * (
602-             [
603-                 ast .Expr (
604-                     value = ast .Call (
605-                         func = ast .Name (id = "print" , ctx = ast .Load ()),
606-                         args = [
607-                             ast .JoinedStr (
608-                                 values = [
609-                                     ast .Constant (value = "!######" ),
610-                                     ast .FormattedValue (
611-                                         value = ast .Name (id = "test_module_name" , ctx = ast .Load ()), conversion = - 1 
612-                                     ),
613-                                     ast .Constant (value = ":" ),
614-                                     ast .FormattedValue (
615-                                         value = ast .IfExp (
616-                                             test = ast .Name (id = "test_class_name" , ctx = ast .Load ()),
617-                                             body = ast .BinOp (
618-                                                 left = ast .Name (id = "test_class_name" , ctx = ast .Load ()),
619-                                                 op = ast .Add (),
620-                                                 right = ast .Constant (value = "." ),
621-                                             ),
622-                                             orelse = ast .Constant (value = "" ),
623-                                         ),
624-                                         conversion = - 1 ,
625-                                     ),
626-                                     ast .FormattedValue (value = ast .Name (id = "test_name" , ctx = ast .Load ()), conversion = - 1 ),
627-                                     ast .Constant (value = ":" ),
628-                                     ast .FormattedValue (
629-                                         value = ast .Name (id = "function_name" , ctx = ast .Load ()), conversion = - 1 
630-                                     ),
631-                                     ast .Constant (value = ":" ),
632-                                     ast .FormattedValue (value = ast .Name (id = "loop_index" , ctx = ast .Load ()), conversion = - 1 ),
633-                                     ast .Constant (value = ":" ),
634-                                     ast .FormattedValue (
635-                                         value = ast .Name (id = "invocation_id" , ctx = ast .Load ()), conversion = - 1 
636-                                     ),
604+         ast .Expr (
605+             value = ast .Call (
606+                 func = ast .Name (id = "print" , ctx = ast .Load ()),
607+                 args = [
608+                     ast .JoinedStr (
609+                         values = [
610+                             ast .Constant (value = "!######" ),
611+                             ast .FormattedValue (value = ast .Name (id = "test_stdout_tag" , ctx = ast .Load ()), conversion = - 1 ),
612+                             * (
613+                                 [
637614                                    ast .Constant (value = ":" ),
638615                                    ast .FormattedValue (
639616                                        value = ast .Name (id = "codeflash_duration" , ctx = ast .Load ()), conversion = - 1 
640617                                    ),
641-                                     ast .Constant (value = "######!" ),
642618                                ]
643-                             )
644-                         ],
645-                         keywords = [],
619+                                 if  mode  ==  TestingMode .PERFORMANCE 
620+                                 else  []
621+                             ),
622+                             ast .Constant (value = "######!" ),
623+                         ]
646624                    )
647-                 )
648-             ]
649-             if  mode  ==  TestingMode .PERFORMANCE 
650-             else  []
625+                 ],
626+                 keywords = [],
627+             )
651628        ),
652629        * (
653630            [
0 commit comments