blob: 00776138be4a083a969e26c982b18b74dd9775c3 [file] [log] [blame]
Aviv Keshetf81b4382013-04-26 14:30:47 -07001#!/bin/bash
2
3# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7SCR="/mnt/host/source/src/third_party/autotest/files/site_utils/test_that.py"
8
9if [ ! -f $SCR ]; then
10 echo "You appear to have a minilayout checkout, without autotest and"
11 echo "test_that.py available in your source tree. Aborting."
12 exit 1
13fi
14
Aviv Kesheta9fc8522013-06-13 14:32:01 -070015trap : SIGTERM SIGINT
16
17sudo $SCR $@ &
18child_pid=$!
19wait $child_pid
20
21if [[ $? -gt 128 ]]
22then
23 sudo kill $child_pid
24 wait $child_pid
25fi