test: improve tests a bit

This commit is contained in:
Kat Marchán
2019-11-14 23:16:55 -08:00
parent dd431d18c6
commit 00cecf9a41
3 changed files with 45 additions and 10 deletions

View File

@@ -38,7 +38,7 @@ function install(spec = 'latest') {
if (process.platform !== 'win32') {
core.debug(`Creating dummy 'nuget' script.`);
const scriptPath = path.join(cachePath, 'nuget');
fs.writeFileSync(scriptPath, `#!/bin/sh\nmono ${cachePath}/nuget.exe $@`);
fs.writeFileSync(scriptPath, `#!/bin/sh\nmono ${path.join(cachePath, 'nuget.exe')} $@`);
fs.chmodSync(scriptPath, '755');
}
core.addPath(cachePath);