[Pkg-javascript-commits] [node-unicode-loose-match] 01/01: use pipe for smoketest

Bastien Roucariès rouca at moszumanska.debian.org
Fri Sep 8 19:19:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-unicode-loose-match.

commit 3600d3e12300a1075fb42a709801a50fff1ef84b
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Fri Sep 8 21:18:51 2017 +0200

    use pipe for smoketest
---
 debian/smoketest.js    | 4 +---
 debian/tests/require   | 0
 debian/tests/smoketest | 8 +++++---
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/debian/smoketest.js b/debian/smoketest.js
index b4ae632..f93ba87 100644
--- a/debian/smoketest.js
+++ b/debian/smoketest.js
@@ -12,8 +12,6 @@ try {
     }
 }
 catch(e) {
-    process.stderr.write(e);
+    process.stderr.write(e.toString());
     process.exit(2);
 }
-    
-
diff --git a/debian/tests/require b/debian/tests/require
old mode 100644
new mode 100755
diff --git a/debian/tests/smoketest b/debian/tests/smoketest
old mode 100644
new mode 100755
index 39810c2..d1df738
--- a/debian/tests/smoketest
+++ b/debian/tests/smoketest
@@ -1,5 +1,7 @@
 #!/bin/sh
 set -e
-cat debian/smoketest.js | sed "s/\.\./unicode-loose-match/g" > debian/smoky.js
-node debian/smoky.js
-rm -f debian/smoky.js
+
+exec 4>&1
+error_sed=$( ( (sed -e "s/\.\./unicode-loose-match/g" < debian/smoketest.js ; echo $? >&3)  | node ) 3>&1 >&4)
+exec 4>&-
+test "X$error_sed" = "X0"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-unicode-loose-match.git



More information about the Pkg-javascript-commits mailing list