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

login
register
mail settings
Submitter Simon Heimberg
Date June 12, 2013, 11:48 p.m.
Message ID <980676bcfbc67a2f9f8b.1371080905@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/1728/
State Superseded, archived
Commit c455e703348ef1e12b364e4005696114d71e3360
Headers show

Comments

Simon Heimberg - June 12, 2013, 11:48 p.m.
# HG changeset patch
# User simon@laptop-tosh
# Date 1371080642 -7200
# Node ID 980676bcfbc67a2f9f8b974bc0fe493616f5879d
# Parent  78787b1dc892f57b3230a03e6714dcf4412f3269
tests: rename files to py extension instead of copying a 2nd time

Patch

diff -r 78787b1dc892 -r 980676bcfbc6 tests/test-check-code-hg.t
--- a/tests/test-check-code-hg.t	Don Jun 13 01:44:02 2013 +0200
+++ b/tests/test-check-code-hg.t	Don Jun 13 01:44:02 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.