test-convert-bzr: use sed instead of awk
authorMartin Geisler <mg@lazybytes.net>
Thu, 07 May 2009 19:02:39 +0200
changeset 8306 74a1625d11ec
parent 8305 7a0fcdd3828f
child 8307 2bb6548a8fa6
test-convert-bzr: use sed instead of awk The run-tests.py script has a list of required tools and awk is not one of them -- luckily it could be replaced by sed in this case.
tests/test-convert-bzr
--- a/tests/test-convert-bzr	Wed May 06 17:48:03 2009 -0400
+++ b/tests/test-convert-bzr	Thu May 07 19:02:39 2009 +0200
@@ -39,7 +39,7 @@
 echo "% compare timestamps"
 cd source
 bzr log | \
-  awk -F'[ :]' '$1 == "timestamp" { printf "%s %s:%s %s\n", $4, $5, $6, $8 }' \
+  sed '/timestamp/!d;s/.\{15\}\([0-9: -]\{16\}\).\{9\}/\1 +0000/' \
   > ../bzr-timestamps
 cd ..