Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verify action IDs #519

Merged
merged 85 commits into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
e241673
Websockets on Node Client
Aug 13, 2021
4ba7c67
Merge branch 'master' into websockets-node
JohaoRosasRosillo Oct 4, 2021
99947f6
validate same id dont run
JohaoRosasRosillo Oct 8, 2021
b9b84d9
actions run once
JohaoRosasRosillo Oct 12, 2021
aef6950
stopped action with id
JohaoRosasRosillo Oct 13, 2021
21eed02
Add id to some actions
Oct 14, 2021
9dc15b3
restore websocket files
patriciojofre Oct 14, 2021
8cbe997
delete comments and console
JohaoRosasRosillo Oct 14, 2021
bcf2cb2
test verify unique id
JohaoRosasRosillo Oct 14, 2021
1860817
Fixing triggers specs
Oct 15, 2021
42900a3
Keep same actions behavior by name
Oct 15, 2021
f1c976e
Logretrieval with id
Oct 15, 2021
619e5b5
geofencing test
JohaoRosasRosillo Oct 15, 2021
6d4287a
Fix commands storage tests
Oct 18, 2021
a839945
Recover old db fixes
Oct 18, 2021
23a1685
test geofencing
JohaoRosasRosillo Oct 19, 2021
7ecc216
Test for commands recovery
Oct 19, 2021
d214fc6
save files in new database
JohaoRosasRosillo Oct 20, 2021
bc06925
delete row file in db when finish upload
JohaoRosasRosillo Oct 20, 2021
b8d208e
test diskencryption
JohaoRosasRosillo Oct 21, 2021
484e34d
lock test with id
JohaoRosasRosillo Oct 21, 2021
3ef849b
test logretrieval
JohaoRosasRosillo Oct 21, 2021
6657998
wipe test with id
JohaoRosasRosillo Oct 21, 2021
613ba37
test actions
JohaoRosasRosillo Oct 21, 2021
67d2390
report missed fix
JohaoRosasRosillo Oct 21, 2021
a2ed355
fix test check server
JohaoRosasRosillo Oct 22, 2021
308b33f
fix report cancel
JohaoRosasRosillo Oct 22, 2021
5b39bbe
comment storage old in commands
JohaoRosasRosillo Oct 22, 2021
4862ff6
test secure
JohaoRosasRosillo Oct 25, 2021
c40378b
account reverse
JohaoRosasRosillo Oct 25, 2021
ffc741e
Hardware changes specs fix
Oct 26, 2021
ee093a5
Fix security keys and harware specs
Oct 26, 2021
3516917
hostname test
JohaoRosasRosillo Oct 26, 2021
6846092
Merge branch 'unique-id' of https://github.com/prey/prey-node-client …
JohaoRosasRosillo Oct 26, 2021
312a17f
delete console.log command storage
JohaoRosasRosillo Oct 26, 2021
581f587
fix test
JohaoRosasRosillo Oct 26, 2021
4347cb1
npm shrinkwrap
JohaoRosasRosillo Oct 27, 2021
f4e97c3
package update
JohaoRosasRosillo Oct 27, 2021
83b2bdb
Fix specs for geofencing and exceptions
Oct 27, 2021
16de8bc
Geofencing fully tested
Oct 28, 2021
8a623aa
Fix hostname storage logic
Oct 29, 2021
e5bdcd2
Remove old keys storage logic
Oct 29, 2021
91ad0ad
Fix specs for actions
Nov 2, 2021
08fd1fb
delete console.log
JohaoRosasRosillo Nov 2, 2021
21dbcbb
delete comments
JohaoRosasRosillo Nov 2, 2021
e0dd19f
completer console
JohaoRosasRosillo Nov 2, 2021
60a9d48
console log necessary
JohaoRosasRosillo Nov 3, 2021
eb27e16
Fix update storage and some triggers specs
Nov 3, 2021
5beccf0
console restored
JohaoRosasRosillo Nov 3, 2021
a614836
restore console.log
JohaoRosasRosillo Nov 3, 2021
e360c40
Merge master
Nov 3, 2021
fa0b091
Reviewing package specs
Nov 4, 2021
57e00d7
test updating spec fix
JohaoRosasRosillo Nov 4, 2021
42ef45f
Fix package tests and modify logic for commands storage deletion
Nov 8, 2021
0385ef8
fix report recovered device
JohaoRosasRosillo Nov 8, 2021
e1180d4
commands fix
JohaoRosasRosillo Nov 8, 2021
1a046c3
commands fix report target
JohaoRosasRosillo Nov 8, 2021
0a94773
Fix geofencing and storage recover
Nov 8, 2021
e6cdb6b
Fix storage for triggers
Nov 8, 2021
2fb4760
Add id to geofencing and triggers sync function
Nov 9, 2021
8025d4a
Fix action tests
Nov 9, 2021
adec480
Fixes on hardware, storage, etc
Nov 10, 2021
8d81ed4
Fileretrieval fixes and storage rename
Nov 10, 2021
87e3887
delete console test diskencryption
JohaoRosasRosillo Nov 10, 2021
4c56116
hostname fix storage
JohaoRosasRosillo Nov 10, 2021
ae3b734
File retrieval fixes, triggers and long polling tests fix
Nov 11, 2021
78f05ea
Little fixes
Nov 11, 2021
fb9bf68
Update lib/agent/actions.js
JohaoRosasRosillo Nov 11, 2021
8c49c2d
Update lib/agent/actions.js
JohaoRosasRosillo Nov 11, 2021
b645fd8
Update lib/agent/actions.js
JohaoRosasRosillo Nov 11, 2021
9d46d35
Update test/lib/agent/updating_spec.js
JohaoRosasRosillo Nov 11, 2021
b3eda51
Update lib/agent/actions/lock/index.js
JohaoRosasRosillo Nov 11, 2021
478f145
Update lib/agent/actions/lock/index.js
JohaoRosasRosillo Nov 11, 2021
5f58852
Update lib/agent/actions/logretrieval/index.js
JohaoRosasRosillo Nov 11, 2021
bbae64a
Update lib/agent/actions/triggers/index.js
JohaoRosasRosillo Nov 11, 2021
a80b98e
Update lib/agent/commands.js
JohaoRosasRosillo Nov 11, 2021
82bf909
Remove comments
Nov 11, 2021
335aa30
Merge branch 'unique-id' of https://github.com/prey/prey-node-client …
Nov 11, 2021
3dd8211
Update test/lib/agent/actions.js
JohaoRosasRosillo Nov 11, 2021
93bbce7
Update test/lib/agent/actions/triggers.js
JohaoRosasRosillo Nov 11, 2021
18cc28e
Update test/lib/agent/actions/triggers.js
JohaoRosasRosillo Nov 11, 2021
4672afc
test comment for updating_spec and triggers
JohaoRosasRosillo Nov 11, 2021
d9183fb
show error message in commands perform
JohaoRosasRosillo Nov 11, 2021
a5e5fc7
show error in sync triggers
JohaoRosasRosillo Nov 11, 2021
06608aa
Fix exception errors
Nov 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/agent/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,12 @@ actions.stop = function(id) {

// revisar q esto siga funcionando!
actions.stop_all = function() {
console.log("STOP ALL!!!")
for (var name in running)
this.stop(name);
}

// esta tb
actions.running = function() {
console.log("RUNNING")
var list = [];
for (var key in running) {
if (running[key].type == 'action') {
Expand Down
1 change: 0 additions & 1 deletion lib/agent/actions/fileretrieval/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ exports.start = function(id, options, cb) {
// in order to resume the upload from that position.
needle.request('get', url, null, function(err, res) {
if (err) {
console.log(err);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

devuelve ese, es necesario

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

listo

return;
}
if (res.statusCode == 404) {
Expand Down
1 change: 0 additions & 1 deletion lib/agent/actions/fileretrieval/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ exports.set_file = function(type, id, opts, cb) {
exports.update_file = function(type, id, key, opts, cb) {
logger.debug('Storing command in DB: ' + key);
storage.do('update', { type: type, id: id, columns: opts.columns, values: opts.values }, (err) => {
console.log("ERR2", err)
JohaoRosasRosillo marked this conversation as resolved.
Show resolved Hide resolved
})
}

Expand Down
2 changes: 0 additions & 2 deletions lib/agent/actions/fileretrieval/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ function main() {
}
Main(options, function(err) {
if (err) {
console.error(err);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tb regresalo

return;
}
});
Expand Down Expand Up @@ -89,7 +88,6 @@ function upload_file(file, buf, cb) {

needle.post(url, buf, options, function(err, res) {
if (err) {
console.log(err);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

este tb

cb(err);
return;
}
Expand Down
12 changes: 0 additions & 12 deletions lib/agent/actions/triggers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ exports.activate_event = (trigger) => {
}

exports.activate = (trigger) => {
console.log("ACTIVATE!!!", trigger)
try {
var index = trigger.automation_events.findIndex(obj => obj.type === 'exact_time' || obj.type === 'repeat_time'),
info = trigger.automation_events[index].info,
Expand All @@ -316,19 +315,12 @@ exports.activate = (trigger) => {
if (isNaN(opts)) return 2;

var current_date = new Date().getTime();
console.log("DATE!", current_date, opts, current_date > opts)

if (current_date > opts) {
console.log("WEAAAA", trigger.persist, !trigger.last_exec)


if (trigger.persist && !trigger.last_exec) {
console.log("RUN TRIGGER ACTIONS COSO")
run_trigger_actions(trigger);
return 6;

} else {
console.log("ELSE!!!")
return 3;
}
}
Expand Down Expand Up @@ -390,7 +382,6 @@ exports.activate = (trigger) => {
var range = {from : date_from, until: date_until};
}

console.log("SCHEDULE!!", opts)
var da_trigger = schedule.scheduleJob(opts, () => {
var date = new Date();

Expand All @@ -408,8 +399,6 @@ exports.activate = (trigger) => {

if (isNaN(date_from) || isNaN(date_until) || date.getTime() < date_from || date.getTime() > date_until) return;
}

console.log("RUN THIS!", trigger)
run_trigger_actions(trigger);
});

Expand Down Expand Up @@ -463,7 +452,6 @@ exports.sync = (err, triggers, stored) => {

try {
if (trigger.automation_events.some(obj => obj.type === 'exact_time' || obj.type === 'repeat_time')) {
console.log("EXACT TRIGGER!!",trigger)
state = exports.activate(trigger);
}else
state = exports.activate_event(trigger);
Expand Down
1 change: 0 additions & 1 deletion lib/agent/actions/wipe/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ wipe.fetch_dirs(what, to_erase, to_kill, null, (err) => {
if (err) last_err = err;
wipe.wipeout((err, out) => {
if (err) last_err = err;
console.log(out)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

este tb es necesario

process.exit();
})
})
Expand Down
1 change: 0 additions & 1 deletion lib/agent/actions/wipe/wipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ exports.cookies = (cb) => {
var browsers = ['chrome', 'firefox', 'iexplore', 'chromium'];
gather('browsers', () => {
// Execute taskkill to all browsers before wipping
console.log("CALL KILL TASKS!!!")
os_wipe.killTasks(browsers, (err, out) => {
if (err) write('Error closing browser applications: ' + err.toString());

Expand Down
9 changes: 0 additions & 9 deletions lib/agent/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ exports.parse = function(body) {
}

exports.perform = function(command) {
console.log("PERFORM!!", command)
if (!command)
return handle_error(new Error('No command received'));

Expand All @@ -115,8 +114,6 @@ exports.perform = function(command) {
id = command.options.messageID;
else
id = uuidv4();

console.log("EL ID!!", id)

if (command.body)
command = command.body;
Expand Down Expand Up @@ -175,11 +172,8 @@ exports.perform = function(command) {

if (method) {
hooks.trigger('command', method, command.target, command.options);
//console.log("METHOD!!", method.toString())
console.log("comand!!", command)
if (command.command != 'start'){
if (command.command=='get' || command.command=='report' || command.command == 'cancel'
//&& (command.target=='users_list' || command.target=='tree'|| command.target=='location')
) {
method(command.target, command.options);
}
Expand Down Expand Up @@ -268,16 +262,13 @@ var watch_stopped = function() {
hooks.on('action', function(event, id) {
if (event == 'stopped' || event == 'failed') {
new_storage.do('update', { type: 'commands', id: id, columns: 'stopped', values: new Date().toISOString() }, (err) => {
console.log("ERR2", err) //
})
}

if (event == 'started') {
new_storage.do('update', { type: 'commands', id: id, columns: 'started', values: new Date().toISOString() }, (err) => {
console.log("ERR2", err) //
})
}
// remove('start', name);
});

hooks.on('trigger', function(event, name) {
Expand Down
2 changes: 0 additions & 2 deletions lib/agent/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ function visible(plugin_name) {
}

var scoped_config = function(plugin_name) {
// console.log('Scoped config for ' + plugin_name);

function nested_key(key) {
return typeof key == 'object' || key.indexOf('.') !== -1
}
Expand Down
1 change: 0 additions & 1 deletion lib/agent/plugins/console/completer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var help = require('./help');

var debug = function(str) {
if (process.env.DEBUG)
console.log(str);
}

// Use completions from help.js where line starts with a space or tab.
Expand Down
2 changes: 0 additions & 2 deletions lib/agent/plugins/console/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ var say = function(message, data) {
var str = data
? message + " received:\n\n" + JSON.stringify(data, null, 2)
: message;

console.log(str);
};

var paste = function(message, data) {
Expand Down
1 change: 0 additions & 1 deletion lib/agent/plugins/control-panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ function boot(cb) {
sync();
long_polling.load.call(common, function(err, emitter) {
if (!emitter) return;
console.log("EMIITTTER CP", emitter)
emitter.on('command', commands.perform);
});
cb && cb();
Expand Down
1 change: 0 additions & 1 deletion lib/agent/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ var map = function(cb) {
};

var get = function(report_name, options, callback) {
console.log("GET", report_name, options)

if (typeof options == 'function') {
var cb = options;
Expand Down
2 changes: 0 additions & 2 deletions lib/agent/triggers/network/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ var emitter,
var get_current = (list) => {
list.forEach(field => {
providers.get(field, (err, data) => {
// console.log(field + ' -> ' + data);
current[field] = data;
})
})
Expand All @@ -32,7 +31,6 @@ var check_if_changed = (field, event) => {
// emitter may be null if trigger is stopped while getting data
if (err || !data || !emitter) return done(err);

// console.log(field + ' -> ' + data);
if (current[field] != data)
emitter.emit(event, data);

Expand Down
3 changes: 0 additions & 3 deletions lib/agent/triggers/power/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ var check_battery_status = (first) => {
providers.get('battery_status', (err, current) => {
if (err || !emitter) return;

// console.log('Current: ' + current.state);
// console.log('Previous: ' + previous.state);

if (first) return previous = current;

// On mac we check 3 more times the battery status because of the realization time.
Expand Down
1 change: 0 additions & 1 deletion lib/system/mac/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ var get_logged_user_pid = function() {

cp.exec(cmd, function(err, stdout, stderr){
process.env.LOGGED_USER_PID = stdout.toString().trim();
// console.log("Logged user PID is " + process.env.LOGGED_USER_PID);
});
};

Expand Down
4 changes: 0 additions & 4 deletions lib/system/utils/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@ if (!run_as || !command) {
process.exit(1);
}

// console.log('Current uid: ' + process.getuid());

var run_command = function(command, args){

// console.log("Running " + command + " with uid " + process.getuid());

var opts = { env: process.env }

if (process.platform == 'linux' && !opts.env.DISPLAY)
Expand Down Expand Up @@ -57,7 +54,6 @@ var safe_escape = function(str) {

try {
process.setuid(run_as);
// console.log('New uid: ' + process.getuid());
} catch (err) {
if (process.platform != 'win32') {
args = args.map(function(a){ return safe_escape(a); })
Expand Down
1 change: 0 additions & 1 deletion test/lib/agent/actions/diskencryption.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ describe('diskencryption', () => {
it('returns error', (done) => {
diskencryption.start(id,opts, (err, em) => {
em.on('end', (id,err, out) => {
console.log("error;",err)
should.exist(err);
err.message.should.containEql('Admin service not available');
done();
Expand Down
5 changes: 0 additions & 5 deletions test/lib/agent/actions/geofencing.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ describe('geofencing', function() {
describe('and theres nothing being watched', function() {
before(function() {
push_stub = sinon.stub(push, 'response').callsFake((data, opts, cb) => {
console.log(data)
push_data = data
return true;
});
Expand Down Expand Up @@ -262,7 +261,6 @@ describe('geofencing', function() {
describe('and theres new fences compared with the stored', function() {
before(function() {
push_stub = sinon.stub(push, 'response').callsFake((data, opts, cb) => {
console.log(data)
push_data = data
return true;
});
Expand Down Expand Up @@ -318,7 +316,6 @@ describe('geofencing', function() {
describe('and theres less fences compared with the stored and one new', function() {
before(function() {
push_stub = sinon.stub(push, 'response').callsFake((data, opts, cb) => {
console.log(data)
push_data = data
return true;
});
Expand Down Expand Up @@ -370,7 +367,6 @@ describe('geofencing', function() {
describe('and theres no new fences comparing with the stored', function() {
before(function() {
push_stub = sinon.stub(push, 'response').callsFake((data, opts, cb) => {
console.log(data)
push_data = data
return true;
});
Expand Down Expand Up @@ -421,7 +417,6 @@ describe('geofencing', function() {
describe('and theres no fences now', function() {
before(function() {
push_stub = sinon.stub(push, 'response').callsFake((data, opts, cb) => {
console.log(data)
push_data = data
return true;
});
Expand Down
6 changes: 0 additions & 6 deletions test/lib/agent/actions/triggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var helpers = require('./../../../helpers'),
commands = require(join(lib_path, 'agent', 'commands')),
actions = require(join(lib_path, 'agent', 'actions')),
triggers_storage = require(join(triggers_path, 'storage')),
// storage = require(join(lib_path, 'agent', 'utils', 'storage')),
storage2 = require(join(lib_path, 'agent', 'utils', 'commands_storage')),
lp = require(join(lib_path, 'agent', 'plugins', 'control-panel', 'long-polling')),
dummy = require('./fixtures/triggers_responses');
Expand Down Expand Up @@ -180,11 +179,9 @@ describe('triggers', () => {
// device date
// date = new Date(),
// year = date.getFullYear() + 1, // Always next year
// console.log("YEAR!!", year)
// timezone_offset = new Date().getTimezoneOffset() * 60 * 1000,
// new_date = new Date(Date.UTC(year, 6, 25, 15, 00, 05)).getTime() + timezone_offset;
new_date = 1918330449000;
console.log("NEW DATE!", new_date)
setTimeout(() => { triggers.start({}, done) }, 500)
clock = sinon.useFakeTimers(new_date);
})
Expand All @@ -197,7 +194,6 @@ describe('triggers', () => {
})

it('does not set up the trigger in the past', (done) => {
console.log("TEST1!!!")
clock.tick(300);
spy_perform.notCalled.should.be.equal(true);
spy_logger.calledOnce.should.be.equal(true);
Expand All @@ -206,9 +202,7 @@ describe('triggers', () => {
})

it('executes the action at the right time', (done) => {
console.log("TEST2!!!")
clock.tick(1001);
console.log("NEW DATE!", new Date().getTime())
spy_perform.calledOnce.should.be.equal(true);
spy_perform.getCall(0).args[0].target.should.be.equal('alert');
spy_perform.getCall(0).args[0].options.trigger_id.should.exists;
Expand Down
7 changes: 0 additions & 7 deletions test/lib/agent/utils/commands_storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,8 @@ describe('storage', () => {

it('modify zone state when update', (done) => {
storage.do('update', { type: 'geofences', id: 1234, columns: 'state', values: 'state' }, (err) => {
// storage.update('geofences', 1234, 'state', 'state', () => {
storage.do('query', { type: 'geofences', column: 'id', data: 1234}, (err, data) => {
// storage.query('geofences', 'id', 1234, (err, out) => {
storage.do('all', {type: 'geofences'}, (err, zonas) => {
// storage.all('geofences', (err, zonas) => {
console.log("ALL ZONAS", zonas)
console.log("QUERY", err, zonas)
done();
});
})
Expand Down Expand Up @@ -308,7 +303,6 @@ describe('storage', () => {

describe('store keys', () => {
before(function(done) {
console.log("TPM DIR!!", tmpdir())
storage.init('geofences', tmpdir() + '/bar.db', done);
})
it('store the key', (done) => {
Expand Down Expand Up @@ -401,7 +395,6 @@ describe('storage', () => {

it('queue', (done) => {
storage.do('set', { type: 'commands', id: id3, data: data3 }, () => {console.log("TERMINÓ EL SET1")});
// console.log("OEOEOE")
storage.do('set', { type: 'commands', id: id4, data: data3}, () => {console.log("TERMINÓ EL SET2")});

setTimeout(() => {
Expand Down
1 change: 0 additions & 1 deletion test/lib/conf/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ describe('config cli arguments', function() {
var attrs = ['--name', 'User', '--email', '[email protected]', '--password', 'buenaonda', '--terms', 'yes', '--age', 'yes'];

helpers.run_cli(['config', 'account', 'signup'].concat(attrs), function(code, out, err) {
console.log(err);
code.should.eql(1);
out.should.containEql('panel.signup called with opts');
out.should.containEql('{"name":"User","email":"[email protected]"');
Expand Down
2 changes: 0 additions & 2 deletions test/lib/system/as_logged_user_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ describe('as_logged_user()', function(){
logged_user_stub,
current_user = process.env.USER;

// console.log('Current user: ' + current_user);

describe('run', function() {

function run(cmd, args, cb) {
Expand Down
1 change: 0 additions & 1 deletion test/utils/spawner_sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ exports.put = function(file, deps, vars, cb) {
if (err) return cb(err);

var modified = replace_deps(data.toString(), deps);
// console.log(modified);

fs.rename(file, file + '.original', function(err) {
if (err) return cb(err);
Expand Down