diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-02-17 20:56:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 20:56:22 +0000 |
commit | 457f958af37293f90a1cca4476a6e0ae2a7626f8 (patch) | |
tree | 5bd7e12a2034831261211acc855d19e5aac65662 /test | |
parent | 53517db3e40e9a2b2a6cc64b0dd7dcef0305ec1e (diff) | |
download | tracifyjs-457f958af37293f90a1cca4476a6e0ae2a7626f8.tar.gz tracifyjs-457f958af37293f90a1cca4476a6e0ae2a7626f8.zip |
improve `--reduce-test` (#3727)
- print out Node.js and OS information
Diffstat (limited to 'test')
-rw-r--r-- | test/reduce.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/reduce.js b/test/reduce.js index 0d803aad..557fffd5 100644 --- a/test/reduce.js +++ b/test/reduce.js @@ -1,6 +1,7 @@ var crypto = require("crypto"); var U = require("./node"); var List = U.List; +var os = require("os"); var sandbox = require("./sandbox"); // Reduce a ufuzz-style `console.log` based test case by iteratively replacing @@ -29,6 +30,9 @@ module.exports = function reduce_test(testcase, minify_options, reduce_options) // the initial timeout to assess the viability of the test case must be large var differs = producesDifferentResultWhenMinified(result_cache, testcase, minify_options, max_timeout); + if (verbose) { + console.error("// Node.js " + process.version + " on " + os.platform() + " " + os.arch()); + } if (!differs) { // same stdout result produced when minified return { |