(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:CURRENT_DIR)
          op: Equal
          rhs: 
            {
              (DQ 
                (CommandSubPart
                  command_list: 
                    (CommandList
                      children: [
                        (AndOr
                          children: [
                            (C {(cd)} 
                              {
                                (DQ 
                                  (CommandSubPart
                                    command_list: 
                                      (CommandList
                                        children: [
                                          (C {(dirname)} 
                                            {
                                              (DQ 
                                                (BracedVarSub
                                                  token: <VSub_Name BASH_SOURCE>
                                                  bracket_op: 
                                                    (ArrayIndex
                                                      expr: (ArithWord w:{(Lit_Digits 0)})
                                                    )
                                                  spids: [65 70]
                                                )
                                              )
                                            }
                                          )
                                        ]
                                      )
                                    left_token: <Left_CommandSub "$(">
                                    spids: [61 72]
                                  )
                                )
                              }
                            )
                            (C {(pwd)})
                          ]
                          op_id: Op_DAmp
                        )
                      ]
                    )
                  left_token: <Left_CommandSub "$(">
                  spids: [57 78]
                )
              )
            }
          spids: [55]
        )
      ]
      spids: [55]
    )
    (AndOr
      children: [
        (C {(source)} {(DQ (${ VSub_Name CURRENT_DIR) (/../integration_test_setup.sh))})
        (BraceGroup
          children: [
            (Sentence
              child: 
                (SimpleCommand
                  words: [{(echo)} {(DQ ("integration_test_setup.sh not found!"))}]
                  redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[102])]
                )
              terminator: <Op_Semi ";">
            )
            (Sentence child:(C {(exit)} {(1)}) terminator:<Op_Semi ";">)
          ]
          spids: [94]
        )
      ]
      op_id: Op_DPipe
    )
    (C {(set)} {(-e)})
    (FuncDef
      name: set_up
      body: 
        (BraceGroup
          children: [
            (C {(mkdir)} {(-p)} {(pkg)})
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (Redir op_id:Redir_Great fd:-1 arg_word:{(pkg/true.sh)} spids:[141])
                (HereDoc
                  op_id: Redir_DLess
                  fd: -1
                  body: {(DQ ("#!/bin/sh\n") ("exit 0\n"))}
                  do_expansion: True
                  here_end: EOF
                  was_filled: True
                  spids: [145]
                )
              ]
            )
            (C {(chmod)} {(755)} {(pkg/true.sh)})
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (Redir op_id:Redir_Great fd:-1 arg_word:{(pkg/slow.sh)} spids:[160])
                (HereDoc
                  op_id: Redir_DLess
                  fd: -1
                  body: {(DQ ("#!/bin/sh\n") ("sleep 10\n") ("exit 0\n"))}
                  do_expansion: True
                  here_end: EOF
                  was_filled: True
                  spids: [164]
                )
              ]
            )
            (C {(chmod)} {(755)} {(pkg/slow.sh)})
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (Redir op_id:Redir_Great fd:-1 arg_word:{(pkg/false.sh)} spids:[180])
                (HereDoc
                  op_id: Redir_DLess
                  fd: -1
                  body: {(DQ ("#!/bin/sh\n") ("exit 1\n"))}
                  do_expansion: True
                  here_end: EOF
                  was_filled: True
                  spids: [184]
                )
              ]
            )
            (C {(chmod)} {(755)} {(pkg/false.sh)})
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: -1
                  arg_word: {(pkg/output.sh)}
                  spids: [199]
                )
                (HereDoc
                  op_id: Redir_DLess
                  fd: -1
                  body: 
                    {
                      (DQ ("#!/bin/sh\n") 
                        (CommandSubPart
                          command_list: (CommandList children:[(C {(which)} {(echo)})])
                          left_token: <Left_Backtick "`">
                          spids: [207 211]
                        ) (" -n foo\n") ("sleep 1\n") 
                        (CommandSubPart
                          command_list: (CommandList children:[(C {(which)} {(echo)})])
                          left_token: <Left_Backtick "`">
                          spids: [214 218]
                        ) (" -n bar\n") ("exit 0\n")
                      )
                    }
                  do_expansion: True
                  here_end: EOF
                  was_filled: True
                  spids: [203]
                )
              ]
            )
            (C {(chmod)} {(755)} {(pkg/output.sh)})
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (Redir op_id:Redir_Great fd:-1 arg_word:{(pkg/BUILD)} spids:[231])
                (HereDoc
                  op_id: Redir_DLess
                  fd: -1
                  body: 
                    {
                      (DQ ("sh_test(\n") ("  name = ") (Right_DoubleQuote "\"") (true) 
                        (Right_DoubleQuote "\"") (",\n") ("  srcs = [") (Right_DoubleQuote "\"") (true.sh) (Right_DoubleQuote "\"") ("],\n") (")\n") 
                        ("sh_test(\n") ("  name = ") (Right_DoubleQuote "\"") (slow) (Right_DoubleQuote "\"") (",\n") ("  srcs = [") 
                        (Right_DoubleQuote "\"") (slow.sh) (Right_DoubleQuote "\"") ("],\n") (")\n") ("sh_test(\n") ("  name = ") (Right_DoubleQuote "\"") 
                        (false) (Right_DoubleQuote "\"") (",\n") ("  srcs = [") (Right_DoubleQuote "\"") (false.sh) 
                        (Right_DoubleQuote "\"") ("],\n") (")\n") ("sh_test(\n") ("  name = ") (Right_DoubleQuote "\"") (output) (Right_DoubleQuote "\"") 
                        (",\n") ("  srcs = [") (Right_DoubleQuote "\"") (output.sh) (Right_DoubleQuote "\"") ("],\n") (")\n") 
                        ("genrule(\n") ("  name = ") (Right_DoubleQuote "\"") (gentext) (Right_DoubleQuote "\"") (",\n") ("  outs = [") 
                        (Right_DoubleQuote "\"") (gentext.txt) (Right_DoubleQuote "\"") ("],\n") ("  cmd = ") (Right_DoubleQuote "\"") 
                        ("echo here be dragons > ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) 
                        ("@") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) (Right_DoubleQuote "\"") ("\n") (")\n")
                      )
                    }
                  do_expansion: True
                  here_end: EOF
                  was_filled: True
                  spids: [235]
                )
              ]
            )
          ]
          spids: [129]
        )
      spids: [123 128]
    )
    (FuncDef
      name: test_basic_progress
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--curses) (Lit_Other "=") (yes)}
                    {(--color) (Lit_Other "=") (yes)}
                    {(pkg) (Lit_Other ":") (true)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [341]
                    )
                  ]
                )
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" test failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_log)} {(SQ <"\\[[0-9,]* / [0-9,]*\\]">)})
            (C {(expect_log)} 
              {
                (SQ <Lit_EscapedChar "\\x"> <1b> <Lit_EscapedChar "\\["> <1A> <Lit_EscapedChar "\\x"> <1b> 
                  <Lit_EscapedChar "\\["> <K>
                )
              }
            )
            (C {(expect_log)} {(SQ <"Analy.*pkg:true">)})
          ]
          spids: [320]
        )
      spids: [314 319]
    )
    (FuncDef
      name: test_noshow_progress
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--noshow_progress)}
                    {(--curses) (Lit_Other "=") (yes)}
                    {(--color) (Lit_Other "=") (yes)}
                    {(pkg) (Lit_Other ":") (true)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [435]
                    )
                  ]
                )
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" test failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_log)} {(SQ <"Elapsed time">)})
            (C {(expect_not_log)} {(SQ <"\\[[0-9,]* / [0-9,]*\\]">)})
          ]
          spids: [410]
        )
      spids: [404 409]
    )
    (FuncDef
      name: test_basic_progress_no_curses
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--curses) (Lit_Other "=") (no)}
                    {(--color) (Lit_Other "=") (yes)}
                    {(pkg) (Lit_Other ":") (true)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [501]
                    )
                  ]
                )
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" test failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_log)} {(SQ <"\\[[0-9,]* / [0-9,]*\\]">)})
            (C {(expect_not_log)} {(SQ <Lit_EscapedChar "\\x"> <1b> <Lit_EscapedChar "\\["> <1A>)})
            (C {(expect_not_log)} {(SQ <Lit_EscapedChar "\\x"> <1b> <Lit_EscapedChar "\\["> <K>)})
            (C {(expect_log)} {(SQ <Lit_EscapedChar "\\x"> <1b> <Lit_EscapedChar "\\["> <32m>)})
          ]
          spids: [480]
        )
      spids: [474 479]
    )
    (FuncDef
      name: test_no_curses_no_linebreak
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--curses) (Lit_Other "=") (no)}
                    {(--color) (Lit_Other "=") (yes)}
                    {(--terminal_columns) (Lit_Other "=") (9)}
                    {(pkg) (Lit_Other ":") (true)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [606]
                    )
                  ]
                )
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" test failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_log)} {(SQ <"\\[[0-9,]* / [0-9,]*\\]......">)})
          ]
          spids: [579]
        )
      spids: [573 578]
    )
    (FuncDef
      name: test_pass
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--curses) (Lit_Other "=") (yes)}
                    {(--color) (Lit_Other "=") (yes)}
                    {(pkg) (Lit_Other ":") (true)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: -1
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [661]
                    )
                  ]
                )
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" test failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_log)} 
              {(SQ <"pkg:true.*">) (SQ <Lit_EscapedChar "\\x"> <1b> <Lit_EscapedChar "\\["> <32m>) 
                (SQ <".*PASS">)
              }
            )
          ]
          spids: [640]
        )
      spids: [634 639]
    )
    (FuncDef
      name: test_fail
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--curses) (Lit_Other "=") (yes)}
                    {(--color) (Lit_Other "=") (yes)}
                    {(pkg) (Lit_Other ":") (false)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: -1
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [727]
                    )
                  ]
                )
                (C {(fail)} {(DQ ("expected failure"))})
              ]
              op_id: Op_DAmp
            )
            (C {(expect_log)} 
              {(SQ <"pkg:false.*">) 
                (SQ <Lit_EscapedChar "\\x"> <1b> <Lit_EscapedChar "\\["> <31m> <Lit_EscapedChar "\\x"> 
                  <1b> <Lit_EscapedChar "\\["> <1m>
                ) (SQ <".*FAIL">)
              }
            )
          ]
          spids: [706]
        )
      spids: [700 705]
    )
    (FuncDef
      name: test_timestamp
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--show_timestamps)}
                    {(pkg) (Lit_Other ":") (true)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [788]
                    )
                  ]
                )
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" test failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_log)} {(SQ <"[0-2][0-9]:[0-5][0-9]:[0-6][0-9]">)})
          ]
          spids: [773]
        )
      spids: [767 772]
    )
    (FuncDef
      name: test_info_spacing
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:BAZEL_INFO_OUTPUT)
                  op: Equal
                  rhs: 
                    {(XXX) 
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [(C {(bazel)} {(info)} {(--experimental_ui)} {(workspace)})]
                          )
                        left_token: <Left_Backtick "`">
                        spids: [837 845]
                      ) (XXX)
                    }
                  spids: [835]
                )
              ]
              spids: [835]
            )
            (AndOr
              children: [
                (Pipeline
                  children: [
                    (C {(echo)} {(DQ ($ VSub_Name "$BAZEL_INFO_OUTPUT"))})
                    (C {(grep)} {(-q)} {(SQ <"XXX[^">) (SQ <Lit_EscapedChar "\\r">) (SQ <"]*XXX">)})
                  ]
                  negated: False
                )
                (C {(fail)} 
                  {
                    (DQ (${ VSub_Name PRODUCT_NAME) (" info output spaced as ") 
                      ($ VSub_Name "$BAZEL_INFO_OUTPUT")
                    )
                  }
                )
              ]
              op_id: Op_DPipe
            )
          ]
          spids: [824]
        )
      spids: [818 823]
    )
    (FuncDef
      name: test_query_spacing
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:BAZEL_QUERY_OUTPUT)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (C {(bazel)} {(query)} {(--experimental_ui)} {(SQ <"deps(//pkg:true)">)})
                            ]
                          )
                        left_token: <Left_Backtick "`">
                        spids: [906 916]
                      )
                    }
                  spids: [905]
                )
              ]
              spids: [905]
            )
            (AndOr
              children: [
                (Pipeline
                  children: [
                    (C {(echo)} {(DQ ($ VSub_Name "$BAZEL_QUERY_OUTPUT"))})
                    (C {(grep)} {(-q)} {(-v)} {(SQ <"^[@/]">)})
                  ]
                  negated: False
                )
                (C {(fail)} {(DQ ("bazel query output is >") ($ VSub_Name "$BAZEL_QUERY_OUTPUT") ("<"))})
              ]
              op_id: Op_DAmp
            )
            (AndOr
              children: [
                (Pipeline
                  children: [
                    (C {(echo)} {(DQ ($ VSub_Name "$BAZEL_QUERY_OUTPUT"))})
                    (C {(grep)} {(-q)} {(SQ <Lit_EscapedChar "\\r">)})
                  ]
                  negated: False
                )
                (C {(fail)} {(DQ ("bazel query output is >") ($ VSub_Name "$BAZEL_QUERY_OUTPUT") ("<"))})
              ]
              op_id: Op_DAmp
            )
            (C {(true)})
          ]
          spids: [894]
        )
      spids: [888 893]
    )
    (FuncDef
      name: test_clean_nobuild
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [{(bazel)} {(clean)} {(--experimental_ui)}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [997]
                    )
                  ]
                )
                (C {(fail)} {(DQ ("bazel shutdown failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_not_log)} {(DQ ("actions running"))})
            (C {(expect_not_log)} {(DQ (Building))})
          ]
          spids: [988]
        )
      spids: [984 987]
    )
    (FuncDef
      name: test_clean_color_nobuild
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [{(bazel)} {(clean)} {(--experimental_ui)} {(--color) (Lit_Other "=") (yes)}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [1044]
                    )
                  ]
                )
                (C {(fail)} {(DQ ("bazel shutdown failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_not_log)} {(DQ ("actions running"))})
            (C {(expect_not_log)} {(DQ (Building))})
          ]
          spids: [1031]
        )
      spids: [1027 1030]
    )
    (FuncDef
      name: test_help_nobuild
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [{(bazel)} {(help)} {(--experimental_ui)}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [1087]
                    )
                  ]
                )
                (C {(fail)} {(DQ ("bazel help failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_not_log)} {(DQ ("actions running"))})
            (C {(expect_not_log)} {(DQ (Building))})
          ]
          spids: [1078]
        )
      spids: [1074 1077]
    )
    (FuncDef
      name: test_help_color_nobuild
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [{(bazel)} {(help)} {(--experimental_ui)} {(--color) (Lit_Other "=") (yes)}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [1134]
                    )
                  ]
                )
                (C {(fail)} {(DQ ("bazel help failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_not_log)} {(DQ ("actions running"))})
            (C {(expect_not_log)} {(DQ (Building))})
          ]
          spids: [1121]
        )
      spids: [1117 1120]
    )
    (FuncDef
      name: test_version_nobuild
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [{(bazel)} {(version)} {(--experimental_ui)} {(--curses) (Lit_Other "=") (yes)}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [1181]
                    )
                  ]
                )
                (C {(fail)} {(DQ ("bazel version failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_not_log)} {(DQ (action))})
            (C {(expect_not_log)} {(DQ (Building))})
          ]
          spids: [1168]
        )
      spids: [1164 1167]
    )
    (FuncDef
      name: test_subcommand
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (C {(bazel)} {(clean)})
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" clean failed"))})
              ]
              op_id: Op_DPipe
            )
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(build)}
                    {(--experimental_ui)}
                    {(-s)}
                    {(pkg) (Lit_Other ":") (gentext)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [1246]
                    )
                  ]
                )
                (C {(fail)} {(DQ ("bazel build failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_log)} {(DQ ("here be dragons"))})
          ]
          spids: [1215]
        )
      spids: [1211 1214]
    )
    (FuncDef
      name: test_subcommand_notdefault
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (C {(bazel)} {(clean)})
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" clean failed"))})
              ]
              op_id: Op_DPipe
            )
            (AndOr
              children: [
                (SimpleCommand
                  words: [{(bazel)} {(build)} {(--experimental_ui)} {(pkg) (Lit_Other ":") (gentext)}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [1302]
                    )
                  ]
                )
                (C {(fail)} {(DQ ("bazel build failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_not_log)} {(DQ (dragons))})
          ]
          spids: [1273]
        )
      spids: [1269 1272]
    )
    (FuncDef
      name: test_loading_progress
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (C {(bazel)} {(clean)})
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" clean failed"))})
              ]
              op_id: Op_DPipe
            )
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--experimental_skyframe_target_pattern_evaluator)}
                    {(pkg) (Lit_Other ":") (true)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [1362]
                    )
                  ]
                )
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" test failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_log)} {(SQ <"Loading.*[0-9,]* packages">)})
          ]
          spids: [1329]
        )
      spids: [1325 1328]
    )
    (FuncDef
      name: test_failure_scrollback_buffer_curses
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (C {(bazel)} {(clean)})
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" clean failed"))})
              ]
              op_id: Op_DPipe
            )
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--curses) (Lit_Other "=") (yes)}
                    {(--color) (Lit_Other "=") (yes)}
                    {(--nocache_test_results)}
                    {(pkg) (Lit_Other ":") (false)}
                    {(pkg) (Lit_Other ":") (slow)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [1441]
                    )
                  ]
                )
                (C {(fail)} {(DQ ("expected failure"))})
              ]
              op_id: Op_DAmp
            )
            (C {(expect_log)} 
              {(SQ <"^">) 
                (SQ <Lit_EscapedChar "\\("> <".*"> <Lit_EscapedChar "\\x"> <1b> <Lit_EscapedChar "\\["> 
                  <K> <Lit_EscapedChar "\\)"> <"*"> <Lit_EscapedChar "\\x"> <1b> <Lit_EscapedChar "\\["> <31m> 
                  <Lit_EscapedChar "\\x"> <1b> <Lit_EscapedChar "\\["> <"1mFAIL:">
                )
              }
            )
          ]
          spids: [1396]
        )
      spids: [1392 1395]
    )
    (FuncDef
      name: test_terminal_title
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--progress_in_terminal_title)}
                    {(pkg) (Lit_Other ":") (true)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [1507]
                    )
                  ]
                )
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" test failed"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_log)} 
              {
                (SQ <Lit_EscapedChar "\\x"> <1b> <Lit_EscapedChar "\\]"> <"0;.*"> <Lit_EscapedChar "\\x"> 
                  <07>
                )
              }
            )
          ]
          spids: [1490]
        )
      spids: [1486 1489]
    )
    (FuncDef
      name: test_failure_scrollback_buffer
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (C {(bazel)} {(clean)})
                (C {(fail)} {(DQ (${ VSub_Name PRODUCT_NAME) (" clean failed"))})
              ]
              op_id: Op_DPipe
            )
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--curses) (Lit_Other "=") (no)}
                    {(--color) (Lit_Other "=") (yes)}
                    {(--nocache_test_results)}
                    {(pkg) (Lit_Other ":") (false)}
                    {(pkg) (Lit_Other ":") (slow)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 2
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [1589]
                    )
                  ]
                )
                (C {(fail)} {(DQ ("expected failure"))})
              ]
              op_id: Op_DAmp
            )
            (C {(expect_log)} 
              {(SQ <"^">) 
                (SQ <Lit_EscapedChar "\\x"> <1b> <Lit_EscapedChar "\\["> <31m> <Lit_EscapedChar "\\x"> 
                  <1b> <Lit_EscapedChar "\\["> <"1mFAIL:">
                )
              }
            )
          ]
          spids: [1544]
        )
      spids: [1540 1543]
    )
    (FuncDef
      name: test_streamed
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(bazel)}
                    {(test)}
                    {(--experimental_ui)}
                    {(--curses) (Lit_Other "=") (yes)}
                    {(--color) (Lit_Other "=") (yes)}
                    {(--nocache_test_results)}
                    {(--test_output) (Lit_Other "=") (streamed)}
                    {(pkg) (Lit_Other ":") (output)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: -1
                      arg_word: {($ VSub_Name "$TEST_log")}
                      spids: [1659]
                    )
                  ]
                )
                (C {(fail)} {(DQ ("expected success"))})
              ]
              op_id: Op_DPipe
            )
            (C {(expect_log)} {(SQ <foobar>)})
          ]
          spids: [1630]
        )
      spids: [1626 1629]
    )
    (C {(run_suite)} 
      {(DQ ("Integration tests for ") (${ VSub_Name PRODUCT_NAME) ("'s experimental UI"))}
    )
  ]
)