Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
temporarily added logging to debug test failures on travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Andric committed Dec 31, 2014
1 parent f97642e commit d13f7aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test-pack.js
Expand Up @@ -27,20 +27,24 @@ var TMPDIR = __dirname + '/tmp';


exports.setUp = function (callback) {
console.log('rm -rf ' + TMPDIR);
exec('rm -rf ' + TMPDIR, function (err) {
if (err) {
return callback(err);
}
console.log('mkdir -p ' + TMPDIR);
exec('mkdir -p ' + TMPDIR, callback);
});
};

exports.tearDown = function (callback) {
console.log('rm -rf ' + TMPDIR);
exec('rm -rf ' + TMPDIR, callback);
};


function diff(test, a, b, expected) {
console.log('diff -ur ' + a + ' ' + b);
exec('diff -ur ' + a + ' ' + b, function (err, stderr, stdout) {
// diff info is on stderr
test.equal(stderr, expected);
Expand All @@ -55,6 +59,7 @@ function diffTest(pkg, expected) {
var cmd = __dirname + '/../bin/kanso pack ' + pkgpath +
' --outfile="' + outfile + '"';

console.log(cmd);
return function (test) {
exec(cmd, function (err, stdout, stderr) {
if (err) {
Expand Down

0 comments on commit d13f7aa

Please sign in to comment.