(command.CommandList children: [ (command.CommandList children: [ (command.Sentence child: (C {<.>} { (DQ (braced_var_sub token: <Id.VSub_Name srcdir> suffix_op: (suffix_op.Unary tok:<Id.VTest_Equals '='> arg_word:{<.>}) ) <'/tests/init.sh'> ) } ) terminator: <Id.Op_Semi _> ) (C {<path_prepend_>} {<'./src'>}) ] ) (C {<print_ver_>} {<mv>}) (command.ShFunction name: cleanup_ body: (BraceGroup children: [ (command.Sentence child: (C {<rm>} {<-rf>} {(DQ ($ Id.VSub_DollarName '$other_partition_tmpdir'))}) terminator: <Id.Op_Semi _> ) ] ) ) (C {<.>} {(DQ ($ Id.VSub_DollarName '$abs_srcdir') <'/tests/other-fs-tmpdir'>)}) (command.AndOr ops:[Id.Op_DPipe] children:[(C {<touch>} {<f>}) (C {<framework_failure_>})]) (command.AndOr ops: [Id.Op_DPipe] children: [(C {<ln>} {<f>} {<g>}) (C {<framework_failure_>})] ) (command.AndOr ops: [Id.Op_DPipe] children: [(C {<mkdir>} {<a>} {<b>}) (C {<framework_failure_>})] ) (command.AndOr ops: [Id.Op_DPipe] children: [(C {<touch>} {<'a/1'>}) (C {<framework_failure_>})] ) (command.AndOr ops: [Id.Op_DPipe] children: [(C {<ln>} {<'a/1'>} {<'b/1'>}) (C {<framework_failure_>})] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<mv>} {<f>} {<g>} {(DQ ($ Id.VSub_DollarName '$other_partition_tmpdir'))}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:fail) op: assign_op.Equal rhs: {<1>} spids: [158] ) ] ) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<mv>} {<a>} {<b>} {(DQ ($ Id.VSub_DollarName '$other_partition_tmpdir'))}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:fail) op: assign_op.Equal rhs: {<1>} spids: [173] ) ] ) ] ) (C {<cd>} {(DQ ($ Id.VSub_DollarName '$other_partition_tmpdir'))}) (C {<set>} {(command_sub left_token:<Id.Left_DollarParen '$('> child:(C {<ls>} {<-Ci>} {<f>} {<g>}))}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<test>} {($ Id.VSub_Number '$1')} {<Id.Lit_Equals '='>} {($ Id.VSub_Number '$3')}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:fail) op: assign_op.Equal rhs: {<1>} spids: [205] ) ] ) ] ) (C {<set>} {(command_sub left_token:<Id.Left_DollarParen '$('> child:(C {<ls>} {<-Ci>} {<'a/1'>} {<'b/1'>}))} ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<test>} {($ Id.VSub_Number '$1')} {<Id.Lit_Equals '='>} {($ Id.VSub_Number '$3')}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:fail) op: assign_op.Equal rhs: {<1>} spids: [230] ) ] ) ] ) (C {<Exit>} {($ Id.VSub_DollarName '$fail')}) ] )