fix test harness issue with emscripten

This commit is contained in:
Florian Dold 2016-11-13 17:25:36 +01:00
parent eb84d5747a
commit 35e7e1f464
2 changed files with 4 additions and 4 deletions

View File

@ -48,16 +48,16 @@ if (argv._.length != 1) {
}
var testScriptName = path.resolve(argv._[0]);
var projectRoot = path.resolve(__dirname, "../../");
var projectRoot = path.resolve(__dirname, "../../") + "/";
if (!testScriptName.startsWith(projectRoot)) {
console.log("test file must be inside wallet project root");
process.exit(1);
}
var testScript = "./" + testScriptName.substring(projectRoot.length);
var testScript = testScriptName.substring(projectRoot.length);
try {
var stats = fs.lstatSync(path.resolve(projectRoot, testScript));
var stats = fs.lstatSync(path.resolve(projectRoot, "./" + testScript));
if (!stats.isFile()) {
throw Error("test must be a file");
}

View File

@ -11,7 +11,7 @@
"lib/emscripten/taler-emscripten-lib": {
format: "global",
exports: "Module",
}
},
},
});
</script>