1 [ 2 { 3 "cmd": [ 4 "python", 5 "-u", 6 "\nimport os\nSSH_MACHINE_FILE = os.path.expanduser('~/ssh_machine.json')\nwith open(SSH_MACHINE_FILE, 'r') as f:\n print f.read()\n" 7 ], 8 "env": { 9 "CHROME_HEADLESS": "1", 10 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 11 }, 12 "infra_step": true, 13 "name": "read chromeos ip", 14 "stdout": "/path/to/tmp/", 15 "~followup_annotations": [ 16 "@@@STEP_LOG_LINE (a] python.inline@@@@", 17 "@@@STEP_LOG_LINE (a] python.inline@import os@@@", 18 "@@@STEP_LOG_LINE (a] python.inline@SSH_MACHINE_FILE = os.path.expanduser('~/ssh_machine.json')@@@", 19 "@@@STEP_LOG_LINE (a] python.inline@with open(SSH_MACHINE_FILE, 'r') as f:@@@", 20 "@@@STEP_LOG_LINE (a] python.inline@ print f.read()@@@", 21 "@@@STEP_LOG_END (a] python.inline@@@" 22 ] 23 }, 24 { 25 "cmd": [ 26 "python", 27 "-u", 28 "\nimport subprocess\nimport sys\nhost = sys.argv[1]\ndevice = sys.argv[2]\nprint subprocess.check_output(['scp', host, device])\n", 29 "file.txt", 30 "foo (a] 127.0.0.1:file.txt" 31 ], 32 "infra_step": true, 33 "name": "scp file.txt foo (a] 127.0.0.1:file.txt", 34 "~followup_annotations": [ 35 "@@@STEP_LOG_LINE (a] python.inline@@@@", 36 "@@@STEP_LOG_LINE (a] python.inline@import subprocess@@@", 37 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 38 "@@@STEP_LOG_LINE (a] python.inline@host = sys.argv[1]@@@", 39 "@@@STEP_LOG_LINE (a] python.inline@device = sys.argv[2]@@@", 40 "@@@STEP_LOG_LINE (a] python.inline@print subprocess.check_output(['scp', host, device])@@@", 41 "@@@STEP_LOG_END (a] python.inline@@@" 42 ] 43 }, 44 { 45 "cmd": [ 46 "python", 47 "-u", 48 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 49 "--json-output", 50 "/path/to/tmp/json", 51 "rmtree", 52 "results_dir" 53 ], 54 "infra_step": true, 55 "name": "rmtree results_dir" 56 }, 57 { 58 "cmd": [ 59 "python", 60 "-u", 61 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 62 "--json-output", 63 "/path/to/tmp/json", 64 "ensure-directory", 65 "--mode", 66 "0777", 67 "results_dir" 68 ], 69 "infra_step": true, 70 "name": "makedirs results_dir" 71 }, 72 { 73 "cmd": [ 74 "ssh", 75 "-oConnectTimeout=15", 76 "-oBatchMode=yes", 77 "-t", 78 "-t", 79 "foo (a] 127.0.0.1", 80 "rm", 81 "-rf", 82 "device_results_dir" 83 ], 84 "env": { 85 "CHROME_HEADLESS": "1", 86 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 87 }, 88 "infra_step": true, 89 "name": "rm device_results_dir" 90 }, 91 { 92 "cmd": [ 93 "ssh", 94 "-oConnectTimeout=15", 95 "-oBatchMode=yes", 96 "-t", 97 "-t", 98 "foo (a] 127.0.0.1", 99 "mkdir", 100 "-p", 101 "device_results_dir" 102 ], 103 "env": { 104 "CHROME_HEADLESS": "1", 105 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 106 }, 107 "infra_step": true, 108 "name": "mkdir device_results_dir" 109 }, 110 { 111 "cmd": [ 112 "ssh", 113 "-oConnectTimeout=15", 114 "-oBatchMode=yes", 115 "-t", 116 "-t", 117 "foo (a] 127.0.0.1", 118 "mkdir", 119 "-p", 120 "/home/chronos/user/resources" 121 ], 122 "env": { 123 "CHROME_HEADLESS": "1", 124 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 125 }, 126 "infra_step": true, 127 "name": "mkdir /home/chronos/user/resources" 128 }, 129 { 130 "cmd": [ 131 "ssh", 132 "-oConnectTimeout=15", 133 "-oBatchMode=yes", 134 "-t", 135 "-t", 136 "foo (a] 127.0.0.1", 137 "sudo", 138 "mount", 139 "-i", 140 "-o", 141 "remount,exec", 142 "/home/chronos" 143 ], 144 "env": { 145 "CHROME_HEADLESS": "1", 146 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 147 }, 148 "infra_step": true, 149 "name": "remount /home/chronos/user/ as exec" 150 }, 151 { 152 "cmd": [ 153 "ssh", 154 "-oConnectTimeout=15", 155 "-oBatchMode=yes", 156 "-t", 157 "-t", 158 "foo (a] 127.0.0.1", 159 "rm", 160 "-rf", 161 "/home/chronos/user/bin" 162 ], 163 "env": { 164 "CHROME_HEADLESS": "1", 165 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 166 }, 167 "infra_step": true, 168 "name": "rm /home/chronos/user/bin" 169 }, 170 { 171 "cmd": [ 172 "ssh", 173 "-oConnectTimeout=15", 174 "-oBatchMode=yes", 175 "-t", 176 "-t", 177 "foo (a] 127.0.0.1", 178 "mkdir", 179 "-p", 180 "/home/chronos/user/bin" 181 ], 182 "env": { 183 "CHROME_HEADLESS": "1", 184 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 185 }, 186 "infra_step": true, 187 "name": "mkdir /home/chronos/user/bin" 188 }, 189 { 190 "cmd": [ 191 "python", 192 "-u", 193 "\nimport subprocess\nimport sys\nsrc = sys.argv[1] + '/*'\ndest = sys.argv[2]\nprint subprocess.check_output('scp -r %s %s' % (src, dest), shell=True)\n", 194 "[START_DIR]/skia/resources", 195 "foo (a] 127.0.0.1:/home/chronos/user/resources" 196 ], 197 "infra_step": true, 198 "name": "scp -r [START_DIR]/skia/resources foo (a] 127.0.0.1:/home/chronos/user/resources", 199 "~followup_annotations": [ 200 "@@@STEP_LOG_LINE (a] python.inline@@@@", 201 "@@@STEP_LOG_LINE (a] python.inline@import subprocess@@@", 202 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 203 "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1] + '/*'@@@", 204 "@@@STEP_LOG_LINE (a] python.inline@dest = sys.argv[2]@@@", 205 "@@@STEP_LOG_LINE (a] python.inline@print subprocess.check_output('scp -r %s %s' % (src, dest), shell=True)@@@", 206 "@@@STEP_LOG_END (a] python.inline@@@" 207 ] 208 }, 209 { 210 "cmd": [ 211 "python", 212 "-u", 213 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 214 "--json-output", 215 "/path/to/tmp/json", 216 "copy", 217 "[START_DIR]/skia/infra/bots/assets/skp/VERSION", 218 "/path/to/tmp/" 219 ], 220 "infra_step": true, 221 "name": "Get skp VERSION" 222 }, 223 { 224 "cmd": [ 225 "python", 226 "-u", 227 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 228 "--json-output", 229 "/path/to/tmp/json", 230 "copy", 231 "42", 232 "[START_DIR]/tmp/SKP_VERSION" 233 ], 234 "infra_step": true, 235 "name": "write SKP_VERSION" 236 }, 237 { 238 "cmd": [ 239 "ssh", 240 "-oConnectTimeout=15", 241 "-oBatchMode=yes", 242 "-t", 243 "-t", 244 "foo (a] 127.0.0.1", 245 "cat", 246 "/home/chronos/user/SKP_VERSION" 247 ], 248 "env": { 249 "CHROME_HEADLESS": "1", 250 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 251 }, 252 "infra_step": true, 253 "name": "read /home/chronos/user/SKP_VERSION", 254 "stdout": "/path/to/tmp/" 255 }, 256 { 257 "cmd": [ 258 "ssh", 259 "-oConnectTimeout=15", 260 "-oBatchMode=yes", 261 "-t", 262 "-t", 263 "foo (a] 127.0.0.1", 264 "rm", 265 "-f", 266 "/home/chronos/user/SKP_VERSION" 267 ], 268 "env": { 269 "CHROME_HEADLESS": "1", 270 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 271 }, 272 "infra_step": true, 273 "name": "rm /home/chronos/user/SKP_VERSION" 274 }, 275 { 276 "cmd": [ 277 "ssh", 278 "-oConnectTimeout=15", 279 "-oBatchMode=yes", 280 "-t", 281 "-t", 282 "foo (a] 127.0.0.1", 283 "rm", 284 "-rf", 285 "/home/chronos/user/skps" 286 ], 287 "env": { 288 "CHROME_HEADLESS": "1", 289 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 290 }, 291 "infra_step": true, 292 "name": "rm /home/chronos/user/skps" 293 }, 294 { 295 "cmd": [ 296 "ssh", 297 "-oConnectTimeout=15", 298 "-oBatchMode=yes", 299 "-t", 300 "-t", 301 "foo (a] 127.0.0.1", 302 "mkdir", 303 "-p", 304 "/home/chronos/user/skps" 305 ], 306 "env": { 307 "CHROME_HEADLESS": "1", 308 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 309 }, 310 "infra_step": true, 311 "name": "mkdir /home/chronos/user/skps" 312 }, 313 { 314 "cmd": [ 315 "python", 316 "-u", 317 "\nimport subprocess\nimport sys\nsrc = sys.argv[1] + '/*'\ndest = sys.argv[2]\nprint subprocess.check_output('scp -r %s %s' % (src, dest), shell=True)\n", 318 "[START_DIR]/skp", 319 "foo (a] 127.0.0.1:/home/chronos/user/skps" 320 ], 321 "infra_step": true, 322 "name": "scp -r [START_DIR]/skp foo (a] 127.0.0.1:/home/chronos/user/skps", 323 "~followup_annotations": [ 324 "@@@STEP_LOG_LINE (a] python.inline@@@@", 325 "@@@STEP_LOG_LINE (a] python.inline@import subprocess@@@", 326 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 327 "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1] + '/*'@@@", 328 "@@@STEP_LOG_LINE (a] python.inline@dest = sys.argv[2]@@@", 329 "@@@STEP_LOG_LINE (a] python.inline@print subprocess.check_output('scp -r %s %s' % (src, dest), shell=True)@@@", 330 "@@@STEP_LOG_END (a] python.inline@@@" 331 ] 332 }, 333 { 334 "cmd": [ 335 "python", 336 "-u", 337 "\nimport subprocess\nimport sys\nhost = sys.argv[1]\ndevice = sys.argv[2]\nprint subprocess.check_output(['scp', host, device])\n", 338 "[START_DIR]/tmp/SKP_VERSION", 339 "foo (a] 127.0.0.1:/home/chronos/user/SKP_VERSION" 340 ], 341 "infra_step": true, 342 "name": "scp [START_DIR]/tmp/SKP_VERSION foo (a] 127.0.0.1:/home/chronos/user/SKP_VERSION", 343 "~followup_annotations": [ 344 "@@@STEP_LOG_LINE (a] python.inline@@@@", 345 "@@@STEP_LOG_LINE (a] python.inline@import subprocess@@@", 346 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 347 "@@@STEP_LOG_LINE (a] python.inline@host = sys.argv[1]@@@", 348 "@@@STEP_LOG_LINE (a] python.inline@device = sys.argv[2]@@@", 349 "@@@STEP_LOG_LINE (a] python.inline@print subprocess.check_output(['scp', host, device])@@@", 350 "@@@STEP_LOG_END (a] python.inline@@@" 351 ] 352 }, 353 { 354 "cmd": [ 355 "python", 356 "-u", 357 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 358 "--json-output", 359 "/path/to/tmp/json", 360 "copy", 361 "[START_DIR]/skia/infra/bots/assets/skimage/VERSION", 362 "/path/to/tmp/" 363 ], 364 "infra_step": true, 365 "name": "Get skimage VERSION" 366 }, 367 { 368 "cmd": [ 369 "python", 370 "-u", 371 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 372 "--json-output", 373 "/path/to/tmp/json", 374 "copy", 375 "42", 376 "[START_DIR]/tmp/SK_IMAGE_VERSION" 377 ], 378 "infra_step": true, 379 "name": "write SK_IMAGE_VERSION" 380 }, 381 { 382 "cmd": [ 383 "ssh", 384 "-oConnectTimeout=15", 385 "-oBatchMode=yes", 386 "-t", 387 "-t", 388 "foo (a] 127.0.0.1", 389 "cat", 390 "/home/chronos/user/SK_IMAGE_VERSION" 391 ], 392 "env": { 393 "CHROME_HEADLESS": "1", 394 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 395 }, 396 "infra_step": true, 397 "name": "read /home/chronos/user/SK_IMAGE_VERSION", 398 "stdout": "/path/to/tmp/" 399 }, 400 { 401 "cmd": [ 402 "ssh", 403 "-oConnectTimeout=15", 404 "-oBatchMode=yes", 405 "-t", 406 "-t", 407 "foo (a] 127.0.0.1", 408 "rm", 409 "-f", 410 "/home/chronos/user/SK_IMAGE_VERSION" 411 ], 412 "env": { 413 "CHROME_HEADLESS": "1", 414 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 415 }, 416 "infra_step": true, 417 "name": "rm /home/chronos/user/SK_IMAGE_VERSION" 418 }, 419 { 420 "cmd": [ 421 "ssh", 422 "-oConnectTimeout=15", 423 "-oBatchMode=yes", 424 "-t", 425 "-t", 426 "foo (a] 127.0.0.1", 427 "rm", 428 "-rf", 429 "/home/chronos/user/images" 430 ], 431 "env": { 432 "CHROME_HEADLESS": "1", 433 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 434 }, 435 "infra_step": true, 436 "name": "rm /home/chronos/user/images" 437 }, 438 { 439 "cmd": [ 440 "ssh", 441 "-oConnectTimeout=15", 442 "-oBatchMode=yes", 443 "-t", 444 "-t", 445 "foo (a] 127.0.0.1", 446 "mkdir", 447 "-p", 448 "/home/chronos/user/images" 449 ], 450 "env": { 451 "CHROME_HEADLESS": "1", 452 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 453 }, 454 "infra_step": true, 455 "name": "mkdir /home/chronos/user/images" 456 }, 457 { 458 "cmd": [ 459 "python", 460 "-u", 461 "\nimport subprocess\nimport sys\nsrc = sys.argv[1] + '/*'\ndest = sys.argv[2]\nprint subprocess.check_output('scp -r %s %s' % (src, dest), shell=True)\n", 462 "[START_DIR]/skimage", 463 "foo (a] 127.0.0.1:/home/chronos/user/images" 464 ], 465 "infra_step": true, 466 "name": "scp -r [START_DIR]/skimage foo (a] 127.0.0.1:/home/chronos/user/images", 467 "~followup_annotations": [ 468 "@@@STEP_LOG_LINE (a] python.inline@@@@", 469 "@@@STEP_LOG_LINE (a] python.inline@import subprocess@@@", 470 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 471 "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1] + '/*'@@@", 472 "@@@STEP_LOG_LINE (a] python.inline@dest = sys.argv[2]@@@", 473 "@@@STEP_LOG_LINE (a] python.inline@print subprocess.check_output('scp -r %s %s' % (src, dest), shell=True)@@@", 474 "@@@STEP_LOG_END (a] python.inline@@@" 475 ] 476 }, 477 { 478 "cmd": [ 479 "python", 480 "-u", 481 "\nimport subprocess\nimport sys\nhost = sys.argv[1]\ndevice = sys.argv[2]\nprint subprocess.check_output(['scp', host, device])\n", 482 "[START_DIR]/tmp/SK_IMAGE_VERSION", 483 "foo (a] 127.0.0.1:/home/chronos/user/SK_IMAGE_VERSION" 484 ], 485 "infra_step": true, 486 "name": "scp [START_DIR]/tmp/SK_IMAGE_VERSION foo (a] 127.0.0.1:/home/chronos/user/SK_IMAGE_VERSION", 487 "~followup_annotations": [ 488 "@@@STEP_LOG_LINE (a] python.inline@@@@", 489 "@@@STEP_LOG_LINE (a] python.inline@import subprocess@@@", 490 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 491 "@@@STEP_LOG_LINE (a] python.inline@host = sys.argv[1]@@@", 492 "@@@STEP_LOG_LINE (a] python.inline@device = sys.argv[2]@@@", 493 "@@@STEP_LOG_LINE (a] python.inline@print subprocess.check_output(['scp', host, device])@@@", 494 "@@@STEP_LOG_END (a] python.inline@@@" 495 ] 496 }, 497 { 498 "cmd": [ 499 "python", 500 "-u", 501 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 502 "--json-output", 503 "/path/to/tmp/json", 504 "copy", 505 "[START_DIR]/skia/infra/bots/assets/svg/VERSION", 506 "/path/to/tmp/" 507 ], 508 "infra_step": true, 509 "name": "Get svg VERSION" 510 }, 511 { 512 "cmd": [ 513 "python", 514 "-u", 515 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 516 "--json-output", 517 "/path/to/tmp/json", 518 "copy", 519 "42", 520 "[START_DIR]/tmp/SVG_VERSION" 521 ], 522 "infra_step": true, 523 "name": "write SVG_VERSION" 524 }, 525 { 526 "cmd": [ 527 "ssh", 528 "-oConnectTimeout=15", 529 "-oBatchMode=yes", 530 "-t", 531 "-t", 532 "foo (a] 127.0.0.1", 533 "cat", 534 "/home/chronos/user/SVG_VERSION" 535 ], 536 "env": { 537 "CHROME_HEADLESS": "1", 538 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 539 }, 540 "infra_step": true, 541 "name": "read /home/chronos/user/SVG_VERSION", 542 "stdout": "/path/to/tmp/" 543 }, 544 { 545 "cmd": [ 546 "ssh", 547 "-oConnectTimeout=15", 548 "-oBatchMode=yes", 549 "-t", 550 "-t", 551 "foo (a] 127.0.0.1", 552 "rm", 553 "-f", 554 "/home/chronos/user/SVG_VERSION" 555 ], 556 "env": { 557 "CHROME_HEADLESS": "1", 558 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 559 }, 560 "infra_step": true, 561 "name": "rm /home/chronos/user/SVG_VERSION" 562 }, 563 { 564 "cmd": [ 565 "ssh", 566 "-oConnectTimeout=15", 567 "-oBatchMode=yes", 568 "-t", 569 "-t", 570 "foo (a] 127.0.0.1", 571 "rm", 572 "-rf", 573 "/home/chronos/user/svgs" 574 ], 575 "env": { 576 "CHROME_HEADLESS": "1", 577 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 578 }, 579 "infra_step": true, 580 "name": "rm /home/chronos/user/svgs" 581 }, 582 { 583 "cmd": [ 584 "ssh", 585 "-oConnectTimeout=15", 586 "-oBatchMode=yes", 587 "-t", 588 "-t", 589 "foo (a] 127.0.0.1", 590 "mkdir", 591 "-p", 592 "/home/chronos/user/svgs" 593 ], 594 "env": { 595 "CHROME_HEADLESS": "1", 596 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 597 }, 598 "infra_step": true, 599 "name": "mkdir /home/chronos/user/svgs" 600 }, 601 { 602 "cmd": [ 603 "python", 604 "-u", 605 "\nimport subprocess\nimport sys\nsrc = sys.argv[1] + '/*'\ndest = sys.argv[2]\nprint subprocess.check_output('scp -r %s %s' % (src, dest), shell=True)\n", 606 "[START_DIR]/svg", 607 "foo (a] 127.0.0.1:/home/chronos/user/svgs" 608 ], 609 "infra_step": true, 610 "name": "scp -r [START_DIR]/svg foo (a] 127.0.0.1:/home/chronos/user/svgs", 611 "~followup_annotations": [ 612 "@@@STEP_LOG_LINE (a] python.inline@@@@", 613 "@@@STEP_LOG_LINE (a] python.inline@import subprocess@@@", 614 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 615 "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1] + '/*'@@@", 616 "@@@STEP_LOG_LINE (a] python.inline@dest = sys.argv[2]@@@", 617 "@@@STEP_LOG_LINE (a] python.inline@print subprocess.check_output('scp -r %s %s' % (src, dest), shell=True)@@@", 618 "@@@STEP_LOG_END (a] python.inline@@@" 619 ] 620 }, 621 { 622 "cmd": [ 623 "python", 624 "-u", 625 "\nimport subprocess\nimport sys\nhost = sys.argv[1]\ndevice = sys.argv[2]\nprint subprocess.check_output(['scp', host, device])\n", 626 "[START_DIR]/tmp/SVG_VERSION", 627 "foo (a] 127.0.0.1:/home/chronos/user/SVG_VERSION" 628 ], 629 "infra_step": true, 630 "name": "scp [START_DIR]/tmp/SVG_VERSION foo (a] 127.0.0.1:/home/chronos/user/SVG_VERSION", 631 "~followup_annotations": [ 632 "@@@STEP_LOG_LINE (a] python.inline@@@@", 633 "@@@STEP_LOG_LINE (a] python.inline@import subprocess@@@", 634 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 635 "@@@STEP_LOG_LINE (a] python.inline@host = sys.argv[1]@@@", 636 "@@@STEP_LOG_LINE (a] python.inline@device = sys.argv[2]@@@", 637 "@@@STEP_LOG_LINE (a] python.inline@print subprocess.check_output(['scp', host, device])@@@", 638 "@@@STEP_LOG_END (a] python.inline@@@" 639 ] 640 }, 641 { 642 "cmd": [ 643 "python", 644 "-u", 645 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 646 "--json-output", 647 "/path/to/tmp/json", 648 "rmtree", 649 "[START_DIR]/[SWARM_OUT_DIR]" 650 ], 651 "infra_step": true, 652 "name": "rmtree [SWARM_OUT_DIR]" 653 }, 654 { 655 "cmd": [ 656 "python", 657 "-u", 658 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 659 "--json-output", 660 "/path/to/tmp/json", 661 "ensure-directory", 662 "--mode", 663 "0777", 664 "[START_DIR]/[SWARM_OUT_DIR]" 665 ], 666 "infra_step": true, 667 "name": "makedirs [SWARM_OUT_DIR]" 668 }, 669 { 670 "cmd": [ 671 "python", 672 "-u", 673 "\nimport subprocess\nimport sys\nhost = sys.argv[1]\ndevice = sys.argv[2]\nprint subprocess.check_output(['scp', host, device])\n", 674 "[START_DIR]/build/dm", 675 "foo (a] 127.0.0.1:/home/chronos/user/bin/dm" 676 ], 677 "infra_step": true, 678 "name": "scp [START_DIR]/build/dm foo (a] 127.0.0.1:/home/chronos/user/bin/dm", 679 "~followup_annotations": [ 680 "@@@STEP_LOG_LINE (a] python.inline@@@@", 681 "@@@STEP_LOG_LINE (a] python.inline@import subprocess@@@", 682 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 683 "@@@STEP_LOG_LINE (a] python.inline@host = sys.argv[1]@@@", 684 "@@@STEP_LOG_LINE (a] python.inline@device = sys.argv[2]@@@", 685 "@@@STEP_LOG_LINE (a] python.inline@print subprocess.check_output(['scp', host, device])@@@", 686 "@@@STEP_LOG_END (a] python.inline@@@" 687 ] 688 }, 689 { 690 "cmd": [ 691 "ssh", 692 "-oConnectTimeout=15", 693 "-oBatchMode=yes", 694 "-t", 695 "-t", 696 "foo (a] 127.0.0.1", 697 "chmod", 698 "+x", 699 "/home/chronos/user/bin/dm" 700 ], 701 "env": { 702 "CHROME_HEADLESS": "1", 703 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 704 }, 705 "infra_step": true, 706 "name": "chmod dm" 707 }, 708 { 709 "cmd": [ 710 "ssh", 711 "-oConnectTimeout=15", 712 "-oBatchMode=yes", 713 "-t", 714 "-t", 715 "foo (a] 127.0.0.1", 716 "/home/chronos/user/bin/dm", 717 "--some-flag" 718 ], 719 "env": { 720 "CHROME_HEADLESS": "1", 721 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 722 }, 723 "infra_step": true, 724 "name": "dm" 725 }, 726 { 727 "cmd": [ 728 "python", 729 "-u", 730 "\nimport subprocess\nimport sys\nsrc = sys.argv[1] + '/*'\ndest = sys.argv[2]\nprint subprocess.check_output('scp -r %s %s' % (src, dest), shell=True)\n", 731 "foo (a] 127.0.0.1:/home/chronos/user/dm_out", 732 "[START_DIR]/[SWARM_OUT_DIR]" 733 ], 734 "infra_step": true, 735 "name": "scp -r foo (a] 127.0.0.1:/home/chronos/user/dm_out [START_DIR]/[SWARM_OUT_DIR]", 736 "~followup_annotations": [ 737 "@@@STEP_LOG_LINE (a] python.inline@@@@", 738 "@@@STEP_LOG_LINE (a] python.inline@import subprocess@@@", 739 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 740 "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1] + '/*'@@@", 741 "@@@STEP_LOG_LINE (a] python.inline@dest = sys.argv[2]@@@", 742 "@@@STEP_LOG_LINE (a] python.inline@print subprocess.check_output('scp -r %s %s' % (src, dest), shell=True)@@@", 743 "@@@STEP_LOG_END (a] python.inline@@@" 744 ] 745 }, 746 { 747 "jsonResult": null, 748 "name": "$result" 749 } 750 ]