Patchwork [1,of,2] tests: silence output of darcs command

login
register
mail settings
Submitter Yuya Nishihara
Date Nov. 5, 2016, 4:45 a.m.
Message ID <566a342697a2740f94fd.1478321158@mimosa>
Download mbox | patch
Permalink /patch/17343/
State Accepted
Headers show

Comments

Yuya Nishihara - Nov. 5, 2016, 4:45 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1478319400 -32400
#      Sat Nov 05 13:16:40 2016 +0900
# Node ID 566a342697a2740f94fd85006f7dac0580bd473b
# Parent  f01367faa792635ad2f7a6b175ae3252292b5121
tests: silence output of darcs command

It appears darcs is more verbose by default these days. I got test failure
with Darcs 2.12.4.

Patch

diff --git a/tests/test-convert-darcs.t b/tests/test-convert-darcs.t
--- a/tests/test-convert-darcs.t
+++ b/tests/test-convert-darcs.t
@@ -8,7 +8,7 @@  initialize darcs repo
 
   $ mkdir darcs-repo
   $ cd darcs-repo
-  $ darcs init
+  $ darcs init -q
   $ echo a > a
   $ darcs record -a -l -m p0
   Finished recording patch 'p0'
@@ -43,6 +43,7 @@  update source
   Backing up ./a(*) (glob)
   We have conflicts in the following files:
   ./a
+   (?)
   $ sleep 1
   $ echo e > a
   $ echo f > f
@@ -54,13 +55,13 @@  update source
 
 test file and directory move
 
-  $ darcs mv f ff
+  $ darcs mv -q f ff
 
 Test remove + move
 
-  $ darcs remove dir/d2
+  $ darcs remove -q dir/d2
   $ rm dir/d2
-  $ darcs mv dir dir2
+  $ darcs mv -q dir dir2
   $ darcs record -a -l -m p3
   Finished recording patch 'p3'