Skip to contentSkip to conversation

Testsuite: get rid of "Broken pipe" errors from yes.

PATCH In review Per Cederqvist 2 participants 3 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Testsuite: get rid of "Broken pipe" errors from yes.

---
 regression/t-029.sh |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
regression/t-029.sh +3 -3
index 83e1d2b..09450c6 100755
@@ -21,11 +21,11 @@ echo | shouldfail guilt repair --full
 
 cmd list_files
 
-yes n | shouldfail guilt repair --full
+yes n 2>/dev/null | shouldfail guilt repair --full
 
 cmd list_files
 
-yes y | cmd guilt repair --full
+yes y 2>/dev/null | cmd guilt repair --full
 
 cmd list_files
 
@@ -33,6 +33,6 @@ cmd guilt push -a
 
 cmd list_files
 
-yes Y | cmd guilt repair --full
+yes Y 2>/dev/null | cmd guilt repair --full
 
 cmd list_files
Signature · 1 line
1.7.10
#1 lore raw
Quoted 1 line · Per Cederqvist

Looks good. Interestingly, I haven't seen those errors before. What's your setup like?

Jeff.

Quoted 34 lines
---
 regression/t-029.sh |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
regression/t-029.sh +3 -3
index 83e1d2b..09450c6 100755
@@ -21,11 +21,11 @@ echo | shouldfail guilt repair --full
 
 cmd list_files
 
-yes n | shouldfail guilt repair --full
+yes n 2>/dev/null | shouldfail guilt repair --full
 
 cmd list_files
 
-yes y | cmd guilt repair --full
+yes y 2>/dev/null | cmd guilt repair --full
 
 cmd list_files
 
@@ -33,6 +33,6 @@ cmd guilt push -a
 
 cmd list_files
 
-yes Y | cmd guilt repair --full
+yes Y 2>/dev/null | cmd guilt repair --full
 
 cmd list_files
Signature · 1 line
1.7.10
Signature · 3 lines
You measure democracy by the freedom it gives its dissidents, not the
freedom it gives its assimilated conformists.
		- Abbie Hoffman

A message that is not in the archive (sent off-list or not yet received): CAHx6-UmQbcwGiv8xEjJo48cRdQ29KurtZ6O0+yZtJmey7GdrjQ@mail.gmail.com

#3 lore raw
Quoted 6 lines · Per Cederqvist
Quoted 5 lines · Jeff Sipek
Quoted 1 line · Per Cederqvist

Looks good. Interestingly, I haven't seen those errors before. What's

Quoted 8 lines

your

Quoted 3 lines

setup like?

Jeff.

I'm running the tests using M-x compile inside Emacs on Ubuntu 11.04. I cannot reproduce it in a plain terminal. yes might inherit some signal setup that Emacs makes.

Makes sense.

Thanks,

Jeff.

Signature · 1 line
Don't drink and derive. Alcohol and algebra don't mix.