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

Side by Side Diff: test/test262/prune-local-tests.sh

Issue 2685603003: test262 roll (Closed)
Patch Set: fix up prune-local-tests.sh and apply Created 3 years, 10 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
« no previous file with comments | « test/test262/local-tests/test/intl402/6.2.2_b.js ('k') | test/test262/test262.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 the V8 project authors. All rights reserved. 1 # Copyright 2016 the V8 project authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # usage: test/test262/prune-local-tests.sh 5 # usage: test/test262/prune-local-tests.sh
6 # This script removes redundant tests present in the local-tests directory 6 # This script removes redundant tests present in the local-tests directory
7 # when they are identical to upstreamed tests. It should be run as part of 7 # when they are identical to upstreamed tests. It should be run as part of
8 # the test262 roll process. 8 # the test262 roll process.
9 9
10 find -f test/test262/local-tests | while read localpath; do 10 find test/test262/local-tests -type f | while read localpath; do
11 datapath=${localpath/local-tests/data} 11 datapath=${localpath/local-tests/data}
12 if diff $localpath $datapath >/dev/null ; then 12 if [ -e $datapath ] ; then
13 git rm $localpath || exit 1 13 if diff $localpath $datapath >/dev/null ; then
14 git rm $localpath || exit 1
15 fi
14 fi 16 fi
15 done 17 done
OLDNEW
« no previous file with comments | « test/test262/local-tests/test/intl402/6.2.2_b.js ('k') | test/test262/test262.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698