Skip to content

Commit

Permalink
Update passed travis-ci build tests using 7za
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Feb 6, 2018
1 parent ae772cc commit 9d06a91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/util/run.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ describe('Utility: `run`', function () {
});

it('should return an error on when 7z gets one', function (done) {
run('7z "???"').catch(function (err) {
run('7za "???"').catch(function (err) {
expect(err.message).to.eql('Unsupported command');
done();
});
});

it('should return an stdout on progress', function (done) {
run('7z', { h: true })
run('7za', { h: true })
.progress(function (data) {
expect(data).to.be.a('string');
})
Expand All @@ -31,7 +31,7 @@ describe('Utility: `run`', function () {
});

it('should correctly parse complex commands', function (done) {
run('7z a ".tmp/test/archive.7z" "*.exe" "*.dll"', {
run('7za a ".tmp/test/archive.7z" "*.exe" "*.dll"', {
m0: '=BCJ',
m1: '=LZMA:d=21'
})
Expand All @@ -49,7 +49,7 @@ describe('Utility: `run`', function () {
});

it('should correctly parse complex commands with spaces', function (done) {
run('7z a ".tmp/Folder A/Folder B\\archive.7z" "*.exe" "*.dll"', {
run('7za a ".tmp/Folder A/Folder B\\archive.7z" "*.exe" "*.dll"', {
m0: '=BCJ',
m1: '=LZMA:d=21',
p : 'My mhjls/\\c $^é5°',
Expand Down
2 changes: 1 addition & 1 deletion util/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = function (command, switches) {
args: args,
options: { stdio: 'pipe' } };

console.log('>> ', res.cmd, res.args.join(' '), res.options,' <<');
//console.log('>> ', res.cmd, res.args.join(' '), res.options,' <<');
var run = spawn(res.cmd, res.args, res.options);
run.stderr.on('data', function (data){
var res = reg.exec(data.toString());
Expand Down

0 comments on commit 9d06a91

Please sign in to comment.