Patchwork [2,of,3] tests: rename files to py extension instead of copying a 2nd time

login
register
mail settings
Submitter Simon Heimberg
Date July 6, 2013, 9:49 p.m.
Message ID <ff9b18822beb9c82f84d.1373147394@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/1803/
State Accepted
Commit c455e703348ef1e12b364e4005696114d71e3360
Delegated to: Kevin Bullock
Headers show

Comments

Simon Heimberg - July 6, 2013, 9:49 p.m.
# HG changeset patch
# User Simon Heimberg <simohe@besonet.ch>
# Date 1373140081 -7200
# Node ID ff9b18822beb9c82f84d9bfc3b2d59faad341529
# Parent  396aec6a35a214bbf0282659123b2699e9faf737
tests: rename files to py extension instead of copying a 2nd time

Patch

diff -r 396aec6a35a2 -r ff9b18822beb tests/test-check-code-hg.t
--- a/tests/test-check-code-hg.t	Sam Jul 06 21:47:56 2013 +0200
+++ b/tests/test-check-code-hg.t	Sam Jul 06 21:48:01 2013 +0200
@@ -22,7 +22,7 @@ 
   >   tests/hghave \
   >   tests/dummyssh \
   >   "$TESTTMP"/
-  $ for f in "$TESTTMP"/*; do cp "$f" "$f.py"; done
+  $ for f in "$TESTTMP"/*; do mv "$f" "$f.py"; done
 
 New errors are not allowed. Warnings are strongly discouraged.