aboutsummaryrefslogtreecommitdiff
path: root/test/mocha.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/mocha.js')
-rw-r--r--test/mocha.js19
1 files changed, 13 insertions, 6 deletions
diff --git a/test/mocha.js b/test/mocha.js
index 9902d653..503afd3d 100644
--- a/test/mocha.js
+++ b/test/mocha.js
@@ -1,4 +1,3 @@
-var colors = require("colors");
var fs = require("fs");
var config = {
@@ -39,6 +38,14 @@ function log_titles(log, current, marker) {
titles = current;
}
+function red(text) {
+ return "\u001B[31m" + text + "\u001B[39m";
+}
+
+function green(text) {
+ return "\u001B[32m" + text + "\u001B[39m";
+}
+
var errors = [];
var total = tasks.length;
titles = [];
@@ -54,7 +61,7 @@ process.nextTick(function run() {
if (elapsed > task.limit) {
throw new Error("Timed out: " + elapsed + "ms > " + task.limit + "ms");
}
- log_titles(console.log, task.titles, colors.green('\u221A '));
+ log_titles(console.log, task.titles, green('\u221A '));
process.nextTick(run);
};
if (task.length) {
@@ -76,19 +83,19 @@ process.nextTick(function run() {
raise(err);
} else if (errors.length) {
console.error();
- console.log(colors.red(errors.length + " test(s) failed!"));
+ console.log(red(errors.length + " test(s) failed!"));
titles = [];
errors.forEach(function(titles, index) {
console.error();
log_titles(console.error, titles, (index + 1) + ") ");
var lines = titles.error.stack.split('\n');
- console.error(colors.red(lines[0]));
+ console.error(red(lines[0]));
console.error(lines.slice(1).join("\n"));
});
process.exit(1);
} else {
console.log();
- console.log(colors.green(total + " test(s) passed."));
+ console.log(green(total + " test(s) passed."));
}
function raise(err) {
@@ -96,7 +103,7 @@ process.nextTick(function run() {
done = function() {};
task.titles.error = err;
errors.push(task.titles);
- log_titles(console.log, task.titles, colors.red('\u00D7 '));
+ log_titles(console.log, task.titles, red('\u00D7 '));
process.nextTick(run);
}
});
il'>...po/guix/bn.po: New file. po/guix/LINGUAS: Add it. Julien Lepiller 2022-07-09nls: Update translations....po/guix/tr.po: New file. po/guix/LINGUAS: Add it. Julien Lepiller 2022-06-04nls: Update translations....po/packages/tr.po: New file. po/packages/LINGUAS: Add it. Julien Lepiller 2022-05-01nls: Update translations....po/guix/ja.po: New file. po/guix/LINGUAS: Add it. Julien Lepiller 2022-04-02nls: Update translations....* po/packages/fi.po: New file. * po/packages/LINGUAS: Add it. Julien Lepiller 2022-03-01nls: Update translations....* po/doc/guix-cookbook.uk.po: New file. * po/doc/local.mk: Add uk cookbook. * doc/local.mk: Add uk cookbook. * po/guix/fa.po: New file. * po/guix/uk.po: New file. * po/guix/LINGUAS: Add fa and uk. Julien Lepiller 2022-02-04nls: Update translations....* po/doc/guix-cookbook.pt_BR.po: New file. * po/doc/local.mk: Add it. * doc/local.mk: Add pt_BR cookbook. Julien Lepiller 2022-01-09nls: Update translations....* po/doc/guix-cookbook.fi.po: New file. * po/doc/guix-manual.fi.po: New file. * po/doc/local.mk: Add them. * doc/local.mk: Add them. * po/guix/fi.po: New file. * po/guix/LINGUAS: Add it. Julien Lepiller 2021-12-04nls: Update translations.Julien Lepiller 2021-11-06nls: Update translations....* po/doc/guix-cookbook.es.po: New file. * po/doc/local.mk: Add 'es' cookbook. * doc/local.mk: Add 'es' cookbook. Julien Lepiller 2021-10-17nls: Update translations.Julien Lepiller 2021-09-02nls: Update translations....* po/packages/it.po: New file. * po/packages/LINGUAS: Add `it'. * po/*/*.po: Update translations. Julien Lepiller 2021-08-04nls: Update translations....* po/doc/guix-cookbook.ru.po: New file. * po/doc/guix-cookbook.sk.po: New file. * po/*/*.po: Update translations. * doc/local.mk (COOKBOOK_LANGUAGES): Add ru and sk. (info_TEXINFOS): Add Russian and Slovak cookbooks. * po/doc/local.mk (DOC_COOKBOOK_PO_FILES): Add Russian and Slovak po files. Julien Lepiller 2021-05-11nls: Update translations.Maxim Cournoyer 2021-05-10nls: Update translations.Maxim Cournoyer 2021-04-18nls: Update 'fr' translations.Julien Lepiller 2021-01-28nls: Update 'fr' translation.Julien Lepiller 2021-01-22Revert "nls: Update 'fr' translation."...This reverts commit 5d03ef73c3c1d995714abdaff650f73ac9fafc0f, which led to these errors: /gnu/store/…-guix/fr.po:7206: 'msgstr' is not a valid Scheme format string, unlike 'msgid'. Reason: In the directive number 3, the character ' ' is not a valid conversion specifier. /gnu/store/…-guix/fr.po:7554: format specifications in 'msgid' and 'msgstr' are not equivalent /gnu/store/…-gettext-minimal-0.20.1/bin/msgfmt: found 2 fatal errors Ludovic Courtès 2021-01-22nls: Update 'fr' translation.Julien Lepiller 2020-12-03nls: Update 'fr' translation of the manual.Ludovic Courtès 2020-11-21nls: Update 'fr' translation of the manual.Ludovic Courtès 2020-11-09nls: Update 'fr' translations.Julien Lepiller 2020-11-03nls: Update translations of the manual.Julien Lepiller 2020-10-30nls: Update 'fr' translation of the manual.Julien Lepiller 2020-10-16nls: Update manual translations.Ludovic Courtès