(CommandList children: [ (C {(Lit_Other ":")} { (BracedVarSub token: <VSub_Name DIR> suffix_op: (StringUnary op_id: VTest_ColonEquals arg_word: { (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: [54 79] ) } ) (AndOr children: [ (C {(source)} {(${ VSub_Name DIR) (/testenv.sh)}) (BraceGroup children: [ (Sentence child: (SimpleCommand words: [{(echo)} {(DQ ("testenv.sh not found!"))}] redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[98])] ) terminator: <Op_Semi ";"> ) (Sentence child:(C {(exit)} {(1)}) terminator:<Op_Semi ";">) ] spids: [90] ) ] op_id: Op_DPipe ) (C {(Lit_Other ":")} { (BracedVarSub token: <VSub_Name COMMAND_ALIASES> suffix_op: (StringUnary op_id:VTest_ColonEquals arg_word:{(bazel)}) spids: [115 119] ) } ) (C {(Lit_Other ":")} { (BracedVarSub token: <VSub_Name COMPLETION> suffix_op: (StringUnary op_id: VTest_ColonEquals arg_word: {(DQ ($ VSub_Name "$TEST_SRCDIR") (/io_bazel/scripts/bazel-complete.bash))} ) spids: [127 134] ) } ) (C {(Lit_Other ":")} { (BracedVarSub token: <VSub_Name PACKAGE_PATH_PREFIX> suffix_op: (StringUnary op_id:VTest_ColonEquals arg_word:{}) spids: [142 145] ) } ) (FuncDef name: array_join body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:joiner) op: Equal rhs: {(DQ ($ VSub_Number "$1"))} spids: [170] ) ] spids: [168] ) (C {(shift)}) (C {(echo)} {(-n)} {(DQ ($ VSub_Number "$1"))}) (C {(shift)}) (ForEach iter_name: i iter_words: [{(DQ ($ VSub_At "$@"))}] do_arg_iter: False body: (DoGroup children: [(C {(echo)} {(-n)} {(DQ (${ VSub_Name joiner) (${ VSub_Name i))})] spids: [202 219] ) spids: [196 200] ) ] spids: [165] ) spids: [161 164] ) (FuncDef name: expand body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:input) op: Equal rhs: {(DQ ($ VSub_Number "$1"))} spids: [266] ) (assign_pair lhs: (LhsName name:flags) op: Equal rhs: {(DQ ($ VSub_Number "$2"))} spids: [271] ) (assign_pair lhs: (LhsName name:stderr_file) op: Equal rhs: {(DQ ($ VSub_Number "$3"))} spids: [276] ) ] spids: [264] ) (Pipeline children: [ (BraceGroup children: [ (C {(echo)} {(DQ ($ VSub_Name "$flags"))}) (C {(echo)} {(DQ ("source ") ($ VSub_Name "$COMPLETION"))}) (ForEach iter_name: i iter_words: [ { (BracedVarSub token: <VSub_Name COMMAND_ALIASES> bracket_op: (WholeArray op_id:Lit_At) spids: [342 347] ) } ] do_arg_iter: False body: (DoGroup children: [ (C {(echo)} { (DQ ("alias ") ($ VSub_Name "$i") ("=") (EscapedLiteralPart token: <Lit_EscapedChar "\\\""> ) ("echo ") ($ VSub_Name "$i") ("'") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) ) } ) ] spids: [350 367] ) spids: [341 348] ) (C {(echo)} {(-en)} {(DQ ($ VSub_Name "$input") ("'"))}) ] spids: [282] ) (SimpleCommand words: [{(bash)} {(--norc)} {(-i)}] redirects: [ (Redir op_id: Redir_Great fd: 2 arg_word: {(DQ ($ VSub_Name "$stderr_file"))} spids: [390] ) ] ) (C {(sed)} {(-e)} {(SQ <"s/^\\(">) (DQ (CommandSubPart command_list: (CommandList children: [ (C {(array_join)} {(DQ (EscapedLiteralPart token:<Lit_EscapedChar "\\|">))} { (BracedVarSub token: <VSub_Name COMMAND_ALIASES> bracket_op: (WholeArray op_id:Lit_At) spids: [413 418] ) } ) ] ) left_token: <Left_CommandSub "$("> spids: [406 419] ) ) (SQ <"\\) /\\1 /">) } ) ] negated: False ) ] spids: [261] ) spids: [257 260] ) (FuncDef name: assert_expansion body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:prefix) op: Equal rhs: {($ VSub_Number "$1")} spids: [449] ) (assign_pair lhs: (LhsName name:expected) op: Equal rhs: {($ VSub_Number "$2")} spids: [452] ) (assign_pair lhs: (LhsName name:flags) op: Equal rhs: { (BracedVarSub token: <VSub_Number 3> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{}) spids: [456 459] ) } spids: [455] ) ] spids: [447] ) (ForEach iter_name: i iter_words: [ { (BracedVarSub token: <VSub_Name COMMAND_ALIASES> bracket_op: (WholeArray op_id:Lit_At) spids: [468 473] ) } ] do_arg_iter: False body: (DoGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:nprefix) op: Equal rhs: {(DQ ($ VSub_Name "$i") (" ") ($ VSub_Name "$prefix"))} spids: [481] ) ] spids: [479] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:nexpected) op: Equal rhs: {(DQ ($ VSub_Name "$i") (" ") ($ VSub_Name "$expected"))} spids: [491] ) ] spids: [489] ) (C {(assert_equals)} {(DQ ($ VSub_Name "$nexpected"))} { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(expand)} { (DQ ($ VSub_Name "$nprefix") (EscapedLiteralPart token: <Lit_EscapedChar "\\t"> ) ) } {(DQ ($ VSub_Name "$flags"))} {(DQ (/dev/null))} ) ] ) left_token: <Left_CommandSub "$("> spids: [506 521] ) ) } ) ] spids: [476 525] ) spids: [467 474] ) ] spids: [444] ) spids: [440 443] ) (FuncDef name: assert_expansion_error_not_contains body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:prefix) op: Equal rhs: {($ VSub_Number "$1")} spids: [561] ) (assign_pair lhs: (LhsName name:not_expected) op: Equal rhs: {($ VSub_Number "$2")} spids: [564] ) (assign_pair lhs: (LhsName name:flags) op: Equal rhs: { (BracedVarSub token: <VSub_Number 3> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{}) spids: [568 571] ) } spids: [567] ) ] spids: [559] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:temp_file) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(mktemp)} {(DQ (${ VSub_Name TEST_TMPDIR) (/tmp.stderr.XXXXXX))}) ] ) left_token: <Left_CommandSub "$("> spids: [578 587] ) ) } spids: [576] ) ] spids: [574] ) (ForEach iter_name: i iter_words: [ { (BracedVarSub token: <VSub_Name COMMAND_ALIASES> bracket_op: (WholeArray op_id:Lit_At) spids: [597 602] ) } ] do_arg_iter: False body: (DoGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:nprefix) op: Equal rhs: {(DQ ($ VSub_Name "$i") (" "))} spids: [610] ) ] spids: [608] ) (SimpleCommand words: [ {(expand)} { (DQ ($ VSub_Name "$nprefix") (EscapedLiteralPart token: <Lit_EscapedChar "\\t"> ) ) } {(DQ ($ VSub_Name "$flags"))} {(DQ ($ VSub_Name "$temp_file"))} ] redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(/dev/null)} spids:[632])] ) (C {(assert_not_contains)} {(DQ ($ VSub_Name "$not_expected"))} {(DQ ($ VSub_Name "$temp_file"))} ) ] spids: [605 648] ) spids: [596 603] ) ] spids: [556] ) spids: [552 555] ) (FuncDef name: make_empty_packages body: (BraceGroup children: [ (C {(touch)} {(video/streamer2/testing/BUILD)}) (C {(touch)} { (BracedVarSub token: <VSub_Name PACKAGE_PATH_PREFIX> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{}) spids: [671 674] ) (video/streamer2/stuff/BUILD) } ) (C {(touch)} {(video/streamer2/names/BUILD)}) ] spids: [661] ) spids: [657 660] ) (FuncDef name: make_packages body: (BraceGroup children: [ (AndOr children: [ (C {(mkdir)} {(-p)} {(video/streamer2/testing)}) (C {(fail)} {(DQ ("mkdir failed"))}) ] op_id: Op_DPipe ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(video/streamer2/BUILD)} spids: [709] ) (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("cc_library(name='task_lib', ...)\n") ("cc_library(name='token_bucket', ...)\n") ("cc_library(name='with_special+_,=-.@~chars', ...)\n") ("#cc_library(name='comment_build_target_1old', ...)\n") ("#cc_library(name='comment_build_target_2old', ...)\n") ("cc_library(name='comment_build_target_2new', ...)\n") ("#cc_test(name='token_bucket_t_1old', ...)\n") ("#cc_test(name='token_bucket_t_2old', ...)\n") ("cc_test(name='token_bucket_test', ...)\n") ("cc_binary(name='token_bucket_binary', ...)\n") ("java_binary ( name = 'JavaBinary', ...)\n") ("java_binary (\n") (" name = 'AnotherJavaBinary'\n") (" ...\n") (")\n") ("cc_binary(other='thing', name='pybin', ...)\n") ("genrule(name='checks/thingy', ...)\n") ("#cc_binary(name='comment_run_target_1old', ...)\n") ("#cc_binary(name='comment_run_target_2old', ...)\n") ("cc_binary(name='comment_run_target_2new', ...)\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [712] ) ] ) (AndOr children: [ (C {(mkdir)} {(-p)} { (BracedVarSub token: <VSub_Name PACKAGE_PATH_PREFIX> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{}) spids: [741 744] ) (video/streamer2/stuff) } ) (C {(fail)} {(DQ ("mkdir failed"))}) ] op_id: Op_DPipe ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: { (BracedVarSub token: <VSub_Name PACKAGE_PATH_PREFIX> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{}) spids: [759 762] ) (video/streamer2/stuff/BUILD) } spids: [758] ) (HereDoc op_id: Redir_DLess fd: -1 body: {(DQ ("cc_library(name='stuff', ...)\n"))} do_expansion: True here_end: EOF was_filled: True spids: [765] ) ] ) (AndOr children: [ (C {(mkdir)} {(-p)} {(video/streamer2/names)}) (C {(fail)} {(DQ ("mkdir failed"))}) ] op_id: Op_DPipe ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(video/streamer2/names/BUILD)} spids: [788] ) (HereDoc op_id: Redir_DLess fd: -1 body: {(DQ ("genrule(\n") (" name = 'foo',\n") (" cmd = ('name=foo'),\n") (")\n"))} do_expansion: True here_end: EOF was_filled: True spids: [791] ) ] ) (AndOr children: [(C {(mkdir)} {(-p)} {(dash)}) (C {(fail)} {(DQ ("mkdir failed"))})] op_id: Op_DPipe ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:-1 arg_word:{(dash/BUILD)} spids:[817]) (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("cc_library(\n") (" name = ") (Right_DoubleQuote "\"") (mia-bid-multiplier-mixer-module) (Right_DoubleQuote "\"") (",\n") (")\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [820] ) ] ) (C {(mkdir)} {(-p)} {(video/notapackage)}) ] spids: [689] ) spids: [685 688] ) (C {(source)} {(${ VSub_Name COMPLETION)}) (FuncDef name: assert_expansion_function body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:ws) op: Equal rhs: {(${ VSub_Name PWD)} spids: [861] ) ] spids: [859] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:function) op: Equal rhs: {(DQ ($ VSub_Number "$1"))} spids: [869] ) (assign_pair lhs: (LhsName name:displacement) op: Equal rhs: {(DQ ($ VSub_Number "$2"))} spids: [874] ) (assign_pair lhs: (LhsName name:type) op: Equal rhs: {(DQ ($ VSub_Number "$3"))} spids: [879] ) (assign_pair lhs: (LhsName name:expected) op: Equal rhs: {(DQ ($ VSub_Number "$4"))} spids: [884] ) (assign_pair lhs: (LhsName name:current) op: Equal rhs: {(DQ ($ VSub_Number "$5"))} spids: [889] ) ] spids: [867] ) (C {(disable_errexit)}) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:actual_result) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(eval)} { (DQ (_bazel__) (${ VSub_Name function) (" ") (EscapedLiteralPart token: <Lit_EscapedChar "\\\""> ) (${ VSub_Name ws) (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) (" ") (EscapedLiteralPart token: <Lit_EscapedChar "\\\""> ) (${ VSub_Name displacement) (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) (" ") (EscapedLiteralPart token: <Lit_EscapedChar "\\\""> ) (${ VSub_Name current) (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) (" ") (EscapedLiteralPart token: <Lit_EscapedChar "\\\""> ) (${ VSub_Name type) (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) ) } ) ] ) left_token: <Left_CommandSub "$("> spids: [901 934] ) } spids: [900] ) ] spids: [898] ) (C {(enable_errexit)}) (C {(assert_equals)} { (DQ (CommandSubPart command_list: (CommandList children: [(C {(echo)} {(-ne)} {(DQ (${ VSub_Name expected))})] ) left_token: <Left_CommandSub "$("> spids: [943 953] ) ) } {(DQ (${ VSub_Name actual_result))} ) ] spids: [856] ) spids: [852 855] ) (FuncDef name: test_expand_rules_in_package body: (BraceGroup children: [ (C {(make_packages)}) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label)} {(DQ ("stuff "))} {(DQ ("//video/streamer2/stuff:"))} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label)} {(SQ <"task_lib ">)} {(SQ <"video/streamer2:ta">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label)} {(SQ <"with_special+_,=-.@~chars ">)} {(SQ <"video/streamer2:with_s">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ (video/))} {(label)} {(SQ <"task_lib ">)} {(SQ <"streamer2:ta">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ (video/))} {(label)} {(SQ )} {(SQ <"video/streamer2:ta">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ (video/))} {(label)} {(SQ <"with_special+_,=-.@~chars ">)} {(SQ <"streamer2:with_s">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label)} {(SQ <"token_bucket_test \\ntoken_bucket_binary ">)} {(SQ <"video/streamer2:token_bucket_">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label)} {(SQ <"stuff ">)} {(SQ <"video/streamer2/stuff:s">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label)} {(SQ )} {(SQ <"video/streamer2:comment_build_target_1o">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label)} {(SQ <"comment_build_target_2new ">)} {(SQ <"video/streamer2:comment_build_target_2">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-test)} {(SQ <"token_bucket_test ">)} {(SQ <"video/streamer2:to">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-test)} {(SQ )} {(SQ <"video/streamer2:token_bucket_t_1o">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-test)} {(SQ <"token_bucket_test ">)} {(SQ <"video/streamer2:token_bucket_t">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-test)} {(SQ <"token_bucket_test ">)} {(SQ <"video/streamer2:">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-test)} {(SQ <"all ">)} {(SQ <"video/streamer2:a">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-bin)} {(SQ <"token_bucket_binary ">)} {(SQ <"video/streamer2:to">)} ) (SimpleCommand words: [ {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-bin)} {(SQ <"token_bucket_test \\ntoken_bucket_binary ">)} {(SQ <"video/streamer2:to">)} ] more_env: [ (env_pair name: BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN val: {(true)} spids: [1389] ) ] ) (SimpleCommand words: [ {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-bin)} {(SQ <"token_bucket_test ">)} {(SQ <"video/streamer2:token_bucket_t">)} ] more_env: [(env_pair name:BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN val:{(1)} spids:[1425])] ) (SimpleCommand words: [ {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-bin)} {(SQ <"token_bucket_binary ">)} {(SQ <"video/streamer2:to">)} ] more_env: [ (env_pair name: BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN val: {(false)} spids: [1461] ) ] ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-bin)} {(SQ )} {(SQ <"video/streamer2:comment_run_target_1o">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-bin)} {(SQ <"comment_run_target_2new ">)} {(SQ <"video/streamer2:comment_run_target_2">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-bin)} {(SQ <"JavaBinary ">)} {(SQ <"video/streamer2:J">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-bin)} {(SQ <"pybin ">)} {(SQ <"video/streamer2:py">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label-bin)} {(SQ <"AnotherJavaBinary ">)} {(SQ <"video/streamer2:A">)} ) (C {(assert_expansion_function)} {(DQ (expand_rules_in_package))} {(DQ )} {(label)} {(SQ <"foo ">)} {(SQ <"video/streamer2/names:">)} ) ] spids: [969] ) spids: [965 968] ) (FuncDef name: test_expand_package_name body: (BraceGroup children: [ (C {(make_packages)}) (C {(assert_expansion_function)} {(DQ (expand_package_name))} {(DQ )} {(DQ )} { (DQ (//video/streamer2/stuff/) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ("//video/streamer2/stuff:") ) } {(DQ (//video/streamer2/stu))} ) (C {(assert_expansion_function)} {(DQ (expand_package_name))} {(DQ )} {(DQ )} {(DQ (//video/notapackage/))} {(DQ (//video/nota))} ) (C {(assert_expansion_function)} {(DQ (expand_package_name))} {(DQ )} {(DQ )} { (DQ (video/streamer2/stuff/) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ("video/streamer2/stuff:") ) } {(DQ (video/streamer2/stu))} ) (C {(assert_expansion_function)} {(DQ (expand_package_name))} {(DQ )} {(DQ )} {(DQ (video/notapackage/))} {(DQ (video/nota))} ) (C {(assert_expansion_function)} {(DQ (expand_package_name))} {(DQ (video/))} {(DQ )} {(DQ )} {(DQ (video/streamer2/stu))} ) (C {(assert_expansion_function)} {(DQ (expand_package_name))} {(DQ (video/))} {(DQ )} {(DQ )} {(DQ (video/nota))} ) (C {(assert_expansion_function)} {(DQ (expand_package_name))} {(DQ (video/))} {(DQ )} { (DQ (streamer2/stuff/) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ("streamer2/stuff:") ) } {(DQ (streamer2/stu))} ) (C {(assert_expansion_function)} {(DQ (expand_package_name))} {(DQ (video/))} {(DQ )} {(DQ (notapackage/))} {(DQ (nota))} ) (C {(assert_expansion_function)} {(DQ (expand_package_name))} {(DQ )} {(DQ (label-package))} { (DQ (//video/streamer2/stuff/) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ("//video/streamer2/stuff ") ) } {(DQ (//video/streamer2/stu))} ) (C {(assert_expansion_function)} {(DQ (expand_package_name))} {(DQ )} {(DQ (label-package))} {(DQ (//video/notapackage/))} {(DQ (//video/nota))} ) ] spids: [1650] ) spids: [1646 1649] ) (FuncDef name: test_expand_target_pattern body: (BraceGroup children: [ (C {(make_packages)}) (C {(assert_expansion_function)} {(DQ (expand_target_pattern))} {(DQ )} {(label)} {(DQ ("stuff "))} {(DQ ("//video/streamer2/stuff:"))} ) (C {(assert_expansion_function)} {(DQ (expand_target_pattern))} {(DQ )} {(label)} { (DQ (//video/streamer2/stuff/) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ("//video/streamer2/stuff:") ) } {(DQ (//video/streamer2/stu))} ) (C {(assert_expansion_function)} {(DQ (expand_target_pattern))} {(DQ )} {(label)} {(DQ ("stuff "))} {(DQ ("video/streamer2/stuff:"))} ) (C {(assert_expansion_function)} {(DQ (expand_target_pattern))} {(DQ )} {(label)} { (DQ (video/streamer2/stuff/) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ("video/streamer2/stuff:") ) } {(DQ (video/streamer2/stu))} ) (C {(assert_expansion_function)} {(DQ (expand_target_pattern))} {(DQ (video/))} {(label)} {(DQ ("stuff "))} {(DQ ("streamer2/stuff:"))} ) (C {(assert_expansion_function)} {(DQ (expand_target_pattern))} {(DQ (video/))} {(label)} { (DQ (streamer2/stuff/) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ("streamer2/stuff:") ) } {(DQ (streamer2/stu))} ) (C {(assert_expansion_function)} {(DQ (expand_target_pattern))} {(DQ (video/))} {(label)} {(DQ ("stuff "))} {(DQ ("//video/streamer2/stuff:"))} ) (C {(assert_expansion_function)} {(DQ (expand_target_pattern))} {(DQ (video/))} {(label)} { (DQ (//video/streamer2/stuff/) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ("//video/streamer2/stuff:") ) } {(DQ (//video/streamer2/stu))} ) (C {(assert_expansion_function)} {(DQ (expand_target_pattern))} {(DQ (video/))} {(label)} {(DQ )} {(DQ ("video/streamer2/stuff:"))} ) (C {(assert_expansion_function)} {(DQ (expand_target_pattern))} {(DQ (video/))} {(label)} {(DQ )} {(DQ (video/streamer2/stu))} ) ] spids: [1935] ) spids: [1931 1934] ) (FuncDef name: test_complete_pattern body: (BraceGroup children: [ (C {(make_packages)}) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ )} {(label)} {(DQ ("stuff "))} {(DQ ("//video/streamer2/stuff:"))} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ )} {(label)} { (DQ (//video/streamer2/stuff/) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ("//video/streamer2/stuff:") ) } {(DQ (//video/streamer2/stu))} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ )} {(label-package)} { (DQ (//video/streamer2/stuff/) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ("//video/streamer2/stuff ") ) } {(DQ (//video/streamer2/stu))} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ )} {(command)} {(DQ ("clean "))} {(DQ (clea))} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ )} {(info-key)} {(DQ ("install_base "))} {(DQ (install_b))} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ )} {(SQ <"{clean,add}">)} {(DQ ("clean "))} {(DQ (clea))} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ )} {(SQ <"command|{abc,def}">)} {(DQ ("abc "))} {(DQ (ab))} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ )} {(SQ <"command|{abc,def}">)} {(DQ ("clean "))} {(DQ (clea))} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ )} {(label)} {(DQ ("stuff "))} {(DQ ("//video/streamer2/stuff:"))} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ )} {(label)} {(SQ <"task_lib ">)} {(SQ <"video/streamer2:ta">)} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ )} {(label)} {(SQ <"with_special+_,=-.@~chars ">)} {(SQ <"video/streamer2:with_s">)} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ (video/))} {(label)} {(DQ ("stuff "))} {(DQ ("//video/streamer2/stuff:"))} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ (video/))} {(label)} {(SQ <"task_lib ">)} {(SQ <"streamer2:ta">)} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ (video/))} {(label)} {(SQ )} {(SQ <"video/streamer2:ta">)} ) (C {(assert_expansion_function)} {(DQ (complete_pattern))} {(DQ (video/))} {(label)} {(SQ <"with_special+_,=-.@~chars ">)} {(SQ <"streamer2:with_s">)} ) ] spids: [2196] ) spids: [2192 2195] ) (FuncDef name: test_basic_subcommand_expansion body: (BraceGroup children: [ (C {(assert_expansion)} {(SQ <bui>)} {(SQ <"build ">)}) (C {(assert_expansion)} {(SQ <hel>)} {(SQ <"help ">)}) (C {(assert_expansion)} {(SQ <shut>)} {(SQ <"shutdown ">)}) ] spids: [2576] ) spids: [2572 2575] ) (FuncDef name: test_common_options body: (BraceGroup children: [ (C {(assert_expansion)} {(SQ <--h>)} {(SQ <--host_jvm_>)}) (C {(assert_expansion)} {(SQ <--host_jvm_a>)} {(SQ <"--host_jvm_args=">)}) ] spids: [2628] ) spids: [2624 2627] ) (FuncDef name: test_build_options body: (BraceGroup children: [ (C {(assert_expansion)} {(SQ <"build --keep_g">)} {(SQ <"build --keep_going ">)}) (C {(assert_expansion)} {(SQ <"build --expe">)} {(SQ <"build --experimental_">)}) (C {(assert_expansion)} {(SQ <"help --cros">)} {(SQ <"help --cros">)}) (C {(assert_expansion)} {(SQ <"build --test_stra">)} {(SQ <"build --test_strategy=">)}) ] spids: [2667] ) spids: [2663 2666] ) (FuncDef name: test_query_options body: (BraceGroup children: [ (C {(assert_expansion)} {(SQ <"query --out">)} {(SQ <"query --output=">)}) (C {(make_packages)}) (C {(assert_expansion)} {(SQ <"query video/streamer2:ta">)} {(SQ <"query video/streamer2:task_lib ">)} ) (C {(assert_expansion)} {(SQ <"query //video/streamer2:ta">)} {(SQ <"query //video/streamer2:task_lib ">)} ) ] spids: [2736] ) spids: [2732 2735] ) (FuncDef name: test_run_options body: (BraceGroup children: [ (C {(assert_expansion)} {(SQ <"run --keep_g">)} {(SQ <"run --keep_going ">)}) (C {(assert_expansion)} {(SQ <"run --expe">)} {(SQ <"run --experimental_">)}) ] spids: [2791] ) spids: [2787 2790] ) (FuncDef name: test_tristate_option body: (BraceGroup children: [ (C {(assert_expansion)} {(SQ <"build --nocache_test_result">)} {(SQ <"build --nocache_test_results ">)} ) ] spids: [2834] ) spids: [2830 2833] ) (FuncDef name: make_dirs body: (BraceGroup children: [ (AndOr children: [ (C {(mkdir)} {(-p)} {(video/streamer2/testing)}) (C {(fail)} {(DQ ("mkdir failed"))}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(mkdir)} {(-p)} { (BracedVarSub token: <VSub_Name PACKAGE_PATH_PREFIX> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{}) spids: [2882 2885] ) (video/streamer2/stuff) } ) (C {(fail)} {(DQ ("mkdir failed"))}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(mkdir)} {(-p)} {(video/streamer2/names)}) (C {(fail)} {(DQ ("mkdir failed"))}) ] op_id: Op_DPipe ) ] spids: [2860] ) spids: [2856 2859] ) (FuncDef name: test_directory_expansion body: (BraceGroup children: [ (C {(make_dirs)}) (C {(assert_expansion)} {(SQ <"build vide">)} {(SQ <"build video/">)}) (C {(assert_expansion)} {(SQ <"build video/">)} {(SQ <"build video/streamer2/">)}) (C {(assert_expansion)} {(SQ <"build video/streamer2/t">)} {(SQ <"build video/streamer2/testing/">)} ) (C {(assert_expansion)} {(SQ <"build video/streamer2/s">)} {(SQ <"build video/streamer2/stuff/">)} ) (C {(make_empty_packages)}) (C {(assert_expansion)} {(SQ <"build video/streamer2/t">)} {(SQ <"build video/streamer2/testing">)} ) (C {(assert_expansion)} {(SQ <"build video/streamer2/s">)} {(SQ <"build video/streamer2/stuff">)} ) (C {(assert_expansion)} {(SQ <"build //vide">)} {(SQ <"build //video/">)}) (C {(assert_expansion)} {(SQ <"build //video/">)} {(SQ <"build //video/streamer2/">)}) (C {(assert_expansion)} {(SQ <"build //video/streamer2/t">)} {(SQ <"build //video/streamer2/testing">)} ) (C {(assert_expansion)} {(SQ <"build //video/streamer2/s">)} {(SQ <"build //video/streamer2/stuff">)} ) ] spids: [2919] ) spids: [2915 2918] ) (FuncDef name: test_directory_expansion_in_subdir body: (BraceGroup children: [ (C {(make_dirs)}) (AndOr children: [ (SimpleCommand words: [{(cd)} {(video)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[3096])] ) (C {(exit)}) ] op_id: Op_DPipe ) (C {(assert_expansion)} {(SQ <"build vide">)} {(SQ <"build vide">)}) (C {(assert_expansion)} {(SQ <"build video/">)} {(SQ <"build video/">)}) (C {(assert_expansion)} {(SQ <"build video/streamer2/t">)} {(SQ <"build video/streamer2/t">)}) (C {(assert_expansion)} {(SQ <"build video/streamer2/s">)} {(SQ <"build video/streamer2/s">)}) (C {(assert_expansion)} {(SQ <"build //vide">)} {(SQ <"build //video/">)}) (C {(assert_expansion)} {(SQ <"build //video/">)} {(SQ <"build //video/streamer2/">)}) (C {(assert_expansion)} {(SQ <"build //video/streamer2/t">)} {(SQ <"build //video/streamer2/testing/">)} ) (C {(assert_expansion)} {(SQ <"build //video/streamer2/s">)} {(SQ <"build //video/streamer2/stuff/">)} ) (C {(assert_expansion)} {(SQ <"build streamer2/t">)} {(SQ <"build streamer2/testing/">)}) (C {(assert_expansion)} {(SQ <"build streamer2/s">)} {(SQ <"build streamer2/stuff/">)}) ] spids: [3081] ) spids: [3077 3080] ) (FuncDef name: test_target_expansion body: (BraceGroup children: [ (C {(make_packages)}) (C {(assert_expansion)} {(SQ <"build video/streamer2:ta">)} {(SQ <"build video/streamer2:task_lib ">)} ) (C {(assert_expansion)} {(SQ <"build video/streamer2:with_s">)} {(SQ <"build video/streamer2:with_special+_,=-.@~chars ">)} ) (C {(assert_expansion)} {(SQ <"build video/streamer2:to">)} {(SQ <"build video/streamer2:token_bucket">)} ) (C {(assert_expansion)} {(SQ <"build video/streamer2/s">)} {(SQ <"build video/streamer2/stuff">)} ) (C {(assert_expansion)} {(SQ <"build video/streamer2/stuff:s">)} {(SQ <"build video/streamer2/stuff:stuff ">)} ) (C {(assert_expansion)} {(SQ <"build video/streamer2:comment_build_target_1o">)} {(SQ <"build video/streamer2:comment_build_target_1o">)} ) (C {(assert_expansion)} {(SQ <"build video/streamer2:comment_build_target_2">)} {(SQ <"build video/streamer2:comment_build_target_2new ">)} ) (C {(assert_expansion)} {(SQ <"test video/streamer2:to">)} {(SQ <"test video/streamer2:token_bucket_test ">)} ) (C {(assert_expansion)} {(SQ <"test video/streamer2:token_bucket_t_1o">)} {(SQ <"test video/streamer2:token_bucket_t_1o">)} ) (C {(assert_expansion)} {(SQ <"test video/streamer2:token_bucket_t">)} {(SQ <"test video/streamer2:token_bucket_test ">)} ) (C {(assert_expansion_error_not_contains)} {(SQ <"test video/streamer2:match">)} {(SQ <"syntax error">)} ) (C {(assert_expansion)} {(SQ <"test video/streamer2:">)} {(SQ <"test video/streamer2:token_bucket_test ">)} ) (C {(assert_expansion)} {(SQ <"build video/streamer2:a">)} {(SQ <"build video/streamer2:all ">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:to">)} {(SQ <"run video/streamer2:token_bucket_binary ">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:to">)} {(SQ <"run video/streamer2:token_bucket_">)} {(SQ <"BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN=true">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:token_bucket_t">)} {(SQ <"run video/streamer2:token_bucket_test ">)} {(SQ <"BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN=1">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:to">)} {(SQ <"run video/streamer2:token_bucket_binary ">)} {(SQ <"BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN=false">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:to">)} {(SQ <"run video/streamer2:token_bucket_binary ">)} {(SQ <"BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN=0">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:to">)} {(SQ <"run video/streamer2:token_bucket_binary ">)} {(SQ <"BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN=junk">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:to">)} {(SQ <"run video/streamer2:token_bucket_binary ">)} {(SQ <"BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN=">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:comment_run_target_1o">)} {(SQ <"run video/streamer2:comment_run_target_1o">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:comment_run_target_2">)} {(SQ <"run video/streamer2:comment_run_target_2new ">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:J">)} {(SQ <"run video/streamer2:JavaBinary ">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:py">)} {(SQ <"run video/streamer2:pybin ">)} ) (C {(assert_expansion)} {(SQ <"run video/streamer2:A">)} {(SQ <"run video/streamer2:AnotherJavaBinary ">)} ) (C {(assert_expansion)} {(SQ <"build video/streamer2/names:">)} {(SQ <"build video/streamer2/names:foo ">)} ) (SimpleCommand words: [ {(assert_expansion)} {(SQ <"build dash:m">)} {(SQ <"build dash:mia-bid-multiplier-mixer-module ">)} ] more_env: [(env_pair name:LC_ALL val:{(en_US.UTF-8)} spids:[3803])] ) ] spids: [3255] ) spids: [3251 3254] ) (FuncDef name: test_target_expansion_in_subdir body: (BraceGroup children: [ (C {(make_packages)}) (SimpleCommand words: [{(cd)} {(video)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[3842])] ) (C {(assert_expansion)} {(SQ <"build streamer2:ta">)} {(SQ <"build streamer2:task_lib ">)}) (C {(assert_expansion)} {(SQ <"build streamer2:to">)} {(SQ <"build streamer2:token_bucket">)}) (C {(assert_expansion)} {(SQ <"build streamer2/s">)} {(SQ <"build streamer2/stuff">)}) (C {(assert_expansion)} {(SQ <"build streamer2/stuff:s">)} {(SQ <"build streamer2/stuff:stuff ">)} ) (C {(assert_expansion)} {(SQ <"build video/streamer2:ta">)} {(SQ <"build video/streamer2:ta">)} ) (C {(assert_expansion)} {(SQ <"build //video/streamer2:ta">)} {(SQ <"build //video/streamer2:task_lib ">)} ) ] spids: [3827] ) spids: [3823 3826] ) (FuncDef name: test_target_expansion_in_package body: (BraceGroup children: [ (C {(make_packages)}) (SimpleCommand words: [{(cd)} {(video/streamer2)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[3963])] ) (C {(assert_expansion)} {(SQ <"build :ta">)} {(SQ <"build :task_lib ">)}) (C {(assert_expansion)} {(SQ <"build :to">)} {(SQ <"build :token_bucket">)}) (C {(assert_expansion)} {(SQ <"build :checks/th">)} {(SQ <"build :checks/thingy ">)}) (C {(assert_expansion)} {(SQ <"build s">)} {(SQ <"build stuff">)}) (C {(assert_expansion)} {(SQ <"build :s">)} {(SQ <"build :s">)}) ] spids: [3948] ) spids: [3944 3947] ) (FuncDef name: test_help body: (BraceGroup children: [ (C {(assert_expansion)} {(SQ <"help qu">)} {(SQ <"help query ">)}) (C {(assert_expansion)} {(SQ <"help bui">)} {(SQ <"help build ">)}) (C {(assert_expansion)} {(SQ <"help shut">)} {(SQ <"help shutdown ">)}) (C {(assert_expansion)} {(SQ <"help start">)} {(SQ <"help startup_options ">)}) ] spids: [4051] ) spids: [4047 4050] ) (FuncDef name: test_info body: (BraceGroup children: [ (C {(assert_expansion)} {(SQ <"info commi">)} {(SQ <"info committed-heap-size ">)}) (C {(assert_expansion)} {(SQ <"info i">)} {(SQ <"info install_base ">)}) (C {(assert_expansion)} {(SQ <"info --show_m">)} {(SQ <"info --show_make_env ">)}) ] spids: [4116] ) spids: [4112 4115] ) (C {(run_suite)} {(DQ ("Tests of bash completion of 'blaze' command."))}) ] )