(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
    )
    (FuncDef
      name: test_different_startup_options
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:pid)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (SimpleCommand
                                words: [{(bazel)} {(info)} {(server_pid)}]
                                redirects: [
                                  (Redir
                                    op_id: Redir_Great
                                    fd: 2
                                    arg_word: {($ VSub_Name "$TEST_log")}
                                    spids: [131]
                                  )
                                ]
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [124 134]
                      )
                    }
                  spids: [123]
                )
              ]
              spids: [123]
            )
            (AndOr
              children: [
                (DBracket
                  expr: (BoolUnary op_id:BoolUnary_n child:{($ VSub_Name "$pid")})
                )
                (C {(fail)} {(DQ ("Couldn't run ") (${ VSub_Name PRODUCT_NAME))})
              ]
              op_id: Op_DPipe
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:newpid)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (SimpleCommand
                                words: [{(bazel)} {(--batch)} {(info)} {(server_pid)}]
                                redirects: [
                                  (Redir
                                    op_id: Redir_Great
                                    fd: 2
                                    arg_word: {($ VSub_Name "$TEST_log")}
                                    spids: [167]
                                  )
                                ]
                              )
                            ]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [158 170]
                      )
                    }
                  spids: [157]
                )
              ]
              spids: [157]
            )
            (C {(expect_log)} 
              {
                (DQ ("WARNING: Running B") (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) 
                  ("(azel") (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) ("|laze") 
                  (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) (") server needs to be killed, because the startup options are different.")
                )
              }
            )
            (AndOr
              children: [
                (DBracket
                  expr: 
                    (BoolBinary
                      op_id: BoolBinary_GlobNEqual
                      left: {(DQ ($ VSub_Name "$newpid"))}
                      right: {(DQ ($ VSub_Name "$pid"))}
                    )
                )
                (C {(fail)} {(DQ ("pid ") ($ VSub_Name "$pid") (" was the same!"))})
              ]
              op_id: Op_DPipe
            )
            (AndOr
              children: [
                (SimpleCommand
                  words: [{(kill)} {(-0)} {($ VSub_Name "$pid")}]
                  redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[217])]
                )
                (C {(fail)} {(DQ ($ VSub_Name "$pid") (" not dead"))})
              ]
              op_id: Op_DAmp
            )
            (AndOr
              children: [
                (SimpleCommand
                  words: [{(kill)} {(-0)} {($ VSub_Name "$newpid")}]
                  redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[237])]
                )
                (C {(fail)} {(DQ ($ VSub_Name "$newpid") (" not dead"))})
              ]
              op_id: Op_DAmp
            )
            (C {(true)})
          ]
          spids: [120]
        )
      spids: [114 119]
    )
    (C {(run_suite)} {(DQ (${ VSub_Name PRODUCT_NAME) (" startup options test"))})
  ]
)