mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Added test cases for cmd, which and asyncExec
This commit is contained in:
@@ -56,6 +56,7 @@ test_FileSystemAccess
|
||||
| tst.js:60:1:60:41 | shelljs ... cement) |
|
||||
| tst.js:61:1:61:17 | shelljs.cat(file) |
|
||||
test_MissingFileSystemAccess
|
||||
| tst.js:65:15:65:18 | file |
|
||||
test_SystemCommandExecution
|
||||
| tst.js:14:1:14:27 | shelljs ... ts, cb) |
|
||||
| tst.js:60:1:60:51 | shelljs ... ec(cmd) |
|
||||
|
||||
@@ -59,3 +59,10 @@ shelljs.uniq(opts, file1, file2);
|
||||
|
||||
shelljs.cat(file).sed(regex, replacement).exec(cmd);
|
||||
shelljs.cat(file).exec(cmd);
|
||||
|
||||
shelljs.cmd(cmd, arg1, arg2, options);
|
||||
shelljs.cmd(cmd);
|
||||
shelljs.which(file);
|
||||
|
||||
const shelljssync = require("async-shelljs");
|
||||
shelljssync.asyncExec(cmd, opts, cb);
|
||||
|
||||
Reference in New Issue
Block a user