Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: tests/save-description-on-failure.sh

Issue 10543151: Add test for git-svn with submodule/merge layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/rename.sh ('k') | tests/submit-from-new-dir.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
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
5 # found in the LICENSE file.
6
3 # We should save a change's description when an upload fails. 7 # We should save a change's description when an upload fails.
4 8
5 set -e 9 set -e
6 10
7 . ./test-lib.sh 11 . ./test-lib.sh
8 12
9 # Back up any previously-saved description the user might have. 13 # Back up any previously-saved description the user might have.
10 BACKUP_FILE="$HOME/.git_cl_description_backup" 14 BACKUP_FILE="$HOME/.git_cl_description_backup"
11 BACKUP_FILE_TMP="$BACKUP_FILE.tmp" 15 BACKUP_FILE_TMP="$BACKUP_FILE.tmp"
12 if [ -e "$BACKUP_FILE" ]; then 16 if [ -e "$BACKUP_FILE" ]; then
(...skipping 30 matching lines...) Expand all
43 47
44 # Restore the previously-saved description. 48 # Restore the previously-saved description.
45 rm -f "$BACKUP_FILE" 49 rm -f "$BACKUP_FILE"
46 if [ -e "$BACKUP_FILE_TMP" ]; then 50 if [ -e "$BACKUP_FILE_TMP" ]; then
47 mv "$BACKUP_FILE_TMP" "$BACKUP_FILE" 51 mv "$BACKUP_FILE_TMP" "$BACKUP_FILE"
48 fi 52 fi
49 53
50 if [ $SUCCESS == 0 ]; then 54 if [ $SUCCESS == 0 ]; then
51 echo PASS 55 echo PASS
52 fi 56 fi
OLDNEW
« no previous file with comments | « tests/rename.sh ('k') | tests/submit-from-new-dir.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698