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 # Check that we're able to submit from a directory that doesn't exist on the | 7 # Check that we're able to submit from a directory that doesn't exist on the |
8 # trunk. This tests for a previous bug where we ended up with an invalid CWD | 8 # trunk. This tests for a previous bug where we ended up with an invalid CWD |
9 # after switching to the merge branch. | 9 # after switching to the merge branch. |
10 | 10 |
11 set -e | 11 set -e |
(...skipping 21 matching lines...) Expand all Loading... |
33 "$GIT_CL dcommit -f" | 33 "$GIT_CL dcommit -f" |
34 ) | 34 ) |
35 | 35 |
36 SUCCESS=$? | 36 SUCCESS=$? |
37 | 37 |
38 cleanup | 38 cleanup |
39 | 39 |
40 if [ $SUCCESS == 0 ]; then | 40 if [ $SUCCESS == 0 ]; then |
41 echo PASS | 41 echo PASS |
42 fi | 42 fi |
OLD | NEW |