OLD | NEW |
1 #!/bin/bash | 1 #!/usr/bin/env bash |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 set -e | 7 set -e |
8 | 8 |
9 . ./test-lib.sh | 9 . ./test-lib.sh |
10 | 10 |
11 setup_initgit | 11 setup_initgit |
(...skipping 14 matching lines...) Expand all Loading... |
26 test_expect_success "upload succeeds (needs a server running on localhost)" \ | 26 test_expect_success "upload succeeds (needs a server running on localhost)" \ |
27 "$GIT_CL upload -m test | grep -q 'Issue created'" | 27 "$GIT_CL upload -m test | grep -q 'Issue created'" |
28 ) | 28 ) |
29 SUCCESS=$? | 29 SUCCESS=$? |
30 | 30 |
31 cleanup | 31 cleanup |
32 | 32 |
33 if [ $SUCCESS == 0 ]; then | 33 if [ $SUCCESS == 0 ]; then |
34 echo PASS | 34 echo PASS |
35 fi | 35 fi |
OLD | NEW |