mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
Use child_process.exec rather than sys.exec
This commit is contained in:
parent
686d9f9cc6
commit
83ff473d30
@ -2,6 +2,7 @@ common = require("../common");
|
||||
assert = common.assert
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var exec = require('child_process').exec;
|
||||
var async_completed = 0, async_expected = 0, unlink = [];
|
||||
|
||||
function asynctest(testBlock, args, callback, assertBlock) {
|
||||
@ -22,7 +23,7 @@ function asynctest(testBlock, args, callback, assertBlock) {
|
||||
}
|
||||
|
||||
function bashRealpath(path, callback) {
|
||||
common.exec("cd '"+path.replace("'","\\'")+"' && pwd -P",function
|
||||
exec("cd '"+path.replace("'","\\'")+"' && pwd -P",function
|
||||
(err, o) {
|
||||
callback(err, o.trim());
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user