[Pkg-javascript-commits] [uglifyjs] 425/491: improve `test/travis-ufuzz.js` (#2786)
Jonas Smedegaard
dr at jones.dk
Wed Feb 14 19:52:00 UTC 2018
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.
commit f96929c0313529dbf323ba20f7dc1be0f0e4e3ba
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date: Mon Jan 15 15:08:35 2018 +0800
improve `test/travis-ufuzz.js` (#2786)
- use more RAM
- show progress in console
- report failure as job status
---
test/travis-ufuzz.js | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/test/travis-ufuzz.js b/test/travis-ufuzz.js
index 2fbe3b0..0ed7682 100644
--- a/test/travis-ufuzz.js
+++ b/test/travis-ufuzz.js
@@ -34,10 +34,24 @@ if (process.argv.length > 2) {
}));
})();
} else {
- var child = require("child_process").spawn("node", [ "test/ufuzz" ], {
- stdio: [ "ignore", "ignore", 1 ]
+ var child = require("child_process").spawn("node", [
+ "--max-old-space-size=2048",
+ "test/ufuzz"
+ ], {
+ stdio: [ "ignore", "pipe", "pipe" ]
});
- var keepAlive = setInterval(console.log, 5 * 60 * 1000);
+ var line = "";
+ child.stdout.on("data", function(data) {
+ line += data;
+ });
+ child.stderr.on("data", function() {
+ process.exitCode = (process.exitCode || 0) + 1;
+ }).pipe(process.stdout);
+ var keepAlive = setInterval(function() {
+ var end = line.lastIndexOf("\r");
+ console.log(line.slice(line.lastIndexOf("\r", end - 1) + 1, end));
+ line = line.slice(end + 1);
+ }, 5 * 60 * 1000);
setTimeout(function() {
clearInterval(keepAlive);
child.kill();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list