OLD | NEW |
---|---|
1 #!/bin/bash | |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 4 # found in the LICENSE file. |
4 | 5 |
5 from telemetry import decorators | 6 # This program wraps an arbitrary command and prints "1" if the command ran |
7 # successfully. | |
6 | 8 |
7 | 9 if "$@"; then |
Nico
2014/03/18 15:12:13
Why not just
"$@"
echo $?
? Or
import subproces
jochen (gone - plz use gerrit)
2014/03/18 15:39:37
Converted to python. I left the magic in to transl
| |
8 Disabled = decorators.Disabled | 10 echo 1 |
9 Enabled = decorators.Enabled | 11 else |
12 echo 0 | |
13 fi | |
OLD | NEW |