Chromium Code Reviews| Index: build/linux/check_return_value |
| diff --git a/tools/telemetry/telemetry/unittest/test.py b/build/linux/check_return_value |
| old mode 100644 |
| new mode 100755 |
| similarity index 53% |
| copy from tools/telemetry/telemetry/unittest/test.py |
| copy to build/linux/check_return_value |
| index 72463488d46ed595256cc6568a81699ad1316c0f..d8b4729264a16afd378035861cd24ab008958167 |
| --- a/tools/telemetry/telemetry/unittest/test.py |
| +++ b/build/linux/check_return_value |
| @@ -1,9 +1,13 @@ |
| +#!/bin/bash |
| # Copyright 2014 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| -from telemetry import decorators |
| +# This program wraps an arbitrary command and prints "1" if the command ran |
| +# successfully. |
| - |
| -Disabled = decorators.Disabled |
| -Enabled = decorators.Enabled |
| +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
|
| + echo 1 |
| +else |
| + echo 0 |
| +fi |