1[
2  {
3    "wd": "/tmp/stable",
4    "env": [
5      "BISECT_STAGE=someBisectStage",
6      "HOME=/user/home"
7    ],
8    "wrapper": {
9      "cmd": {
10        "path": "./x86_64-cros-linux-gnu-clang",
11        "args": [
12          "main.cc"
13        ]
14      }
15    },
16    "cmds": [
17      {
18        "cmd": {
19          "path": "/usr/bin/env",
20          "args": [
21            "python3",
22            "-c",
23            "\nimport bisect_driver\nimport shlex\nimport sys\n\ndef ExpandArgs(args, target):\n\tfor arg in args:\n\t\tif arg[0] == '@':\n\t\t\twith open(arg[1:], 'r', encoding='utf-8') as f:\n\t\t\t\tExpandArgs(shlex.split(f.read()), target)\n\t\telse:\n\t\t\ttarget.append(arg)\n\treturn target\n\nstage = sys.argv[1]\ndir = sys.argv[2]\nexecargs = ExpandArgs(sys.argv[3:], [])\n\nsys.exit(bisect_driver.bisect_driver(stage, dir, execargs))\n",
24            "someBisectStage",
25            "/tmp/sysroot_bisect",
26            "/tmp/stable/clang",
27            "-Qunused-arguments",
28            "-fno-addrsig",
29            "-fcommon",
30            "-fuse-ld=lld",
31            "-Wno-unused-local-typedefs",
32            "-Wno-deprecated-declarations",
33            "-Wno-tautological-constant-compare",
34            "-Wno-tautological-unsigned-enum-zero-compare",
35            "-Wno-final-dtor-non-final-class",
36            "-Werror=poison-system-directories",
37            "-Wno-unknown-warning-option",
38            "-fexperimental-new-pass-manager",
39            "-Wno-compound-token-split-by-macro",
40            "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
41            "main.cc",
42            "-Wno-implicit-int-float-conversion",
43            "-Wno-compound-token-split-by-space",
44            "-Wno-string-concatenation"
45          ],
46          "env_updates": [
47            "PYTHONPATH=/somepath/test_binary"
48          ]
49        }
50      }
51    ]
52  },
53  {
54    "wd": "/tmp/stable",
55    "env": [
56      "BISECT_STAGE=someBisectStage",
57      "BISECT_DIR=someBisectDir",
58      "HOME=/user/home"
59    ],
60    "wrapper": {
61      "cmd": {
62        "path": "./x86_64-cros-linux-gnu-clang",
63        "args": [
64          "main.cc"
65        ]
66      }
67    },
68    "cmds": [
69      {
70        "cmd": {
71          "path": "/usr/bin/env",
72          "args": [
73            "python3",
74            "-c",
75            "\nimport bisect_driver\nimport shlex\nimport sys\n\ndef ExpandArgs(args, target):\n\tfor arg in args:\n\t\tif arg[0] == '@':\n\t\t\twith open(arg[1:], 'r', encoding='utf-8') as f:\n\t\t\t\tExpandArgs(shlex.split(f.read()), target)\n\t\telse:\n\t\t\ttarget.append(arg)\n\treturn target\n\nstage = sys.argv[1]\ndir = sys.argv[2]\nexecargs = ExpandArgs(sys.argv[3:], [])\n\nsys.exit(bisect_driver.bisect_driver(stage, dir, execargs))\n",
76            "someBisectStage",
77            "someBisectDir",
78            "/tmp/stable/clang",
79            "-Qunused-arguments",
80            "-fno-addrsig",
81            "-fcommon",
82            "-fuse-ld=lld",
83            "-Wno-unused-local-typedefs",
84            "-Wno-deprecated-declarations",
85            "-Wno-tautological-constant-compare",
86            "-Wno-tautological-unsigned-enum-zero-compare",
87            "-Wno-final-dtor-non-final-class",
88            "-Werror=poison-system-directories",
89            "-Wno-unknown-warning-option",
90            "-fexperimental-new-pass-manager",
91            "-Wno-compound-token-split-by-macro",
92            "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
93            "main.cc",
94            "-Wno-implicit-int-float-conversion",
95            "-Wno-compound-token-split-by-space",
96            "-Wno-string-concatenation"
97          ],
98          "env_updates": [
99            "PYTHONPATH=/somepath/test_binary"
100          ]
101        }
102      }
103    ]
104  },
105  {
106    "wd": "/tmp/stable",
107    "env": [
108      "BISECT_STAGE=someBisectStage",
109      "BISECT_DIR=someBisectDir",
110      "HOME=/user/home"
111    ],
112    "wrapper": {
113      "cmd": {
114        "path": "./x86_64-cros-linux-gnu-clang",
115        "args": [
116          "main.cc"
117        ]
118      },
119      "stdout": "somemessage",
120      "stderr": "someerror",
121      "exitcode": 1
122    },
123    "cmds": [
124      {
125        "cmd": {
126          "path": "/usr/bin/env",
127          "args": [
128            "python3",
129            "-c",
130            "\nimport bisect_driver\nimport shlex\nimport sys\n\ndef ExpandArgs(args, target):\n\tfor arg in args:\n\t\tif arg[0] == '@':\n\t\t\twith open(arg[1:], 'r', encoding='utf-8') as f:\n\t\t\t\tExpandArgs(shlex.split(f.read()), target)\n\t\telse:\n\t\t\ttarget.append(arg)\n\treturn target\n\nstage = sys.argv[1]\ndir = sys.argv[2]\nexecargs = ExpandArgs(sys.argv[3:], [])\n\nsys.exit(bisect_driver.bisect_driver(stage, dir, execargs))\n",
131            "someBisectStage",
132            "someBisectDir",
133            "/tmp/stable/clang",
134            "-Qunused-arguments",
135            "-fno-addrsig",
136            "-fcommon",
137            "-fuse-ld=lld",
138            "-Wno-unused-local-typedefs",
139            "-Wno-deprecated-declarations",
140            "-Wno-tautological-constant-compare",
141            "-Wno-tautological-unsigned-enum-zero-compare",
142            "-Wno-final-dtor-non-final-class",
143            "-Werror=poison-system-directories",
144            "-Wno-unknown-warning-option",
145            "-fexperimental-new-pass-manager",
146            "-Wno-compound-token-split-by-macro",
147            "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
148            "main.cc",
149            "-Wno-implicit-int-float-conversion",
150            "-Wno-compound-token-split-by-space",
151            "-Wno-string-concatenation"
152          ],
153          "env_updates": [
154            "PYTHONPATH=/somepath/test_binary"
155          ]
156        },
157        "stdout": "somemessage",
158        "stderr": "someerror",
159        "exitcode": 1
160      }
161    ]
162  }
163]
164