1
0
Fork 0

runapptests - Allow directly loading from upload step

master
Martin Boonk 2024-05-07 19:46:01 +02:00
parent 305694ad2f
commit 162aa57dc2
1 changed files with 3 additions and 0 deletions

View File

@ -275,6 +275,9 @@ function runStep(step, subtest, test, state){
p = p.then(()=>{ p = p.then(()=>{
console.log("> UPLOADING" + (step.load ? " AND LOADING" : ""), step.file); console.log("> UPLOADING" + (step.load ? " AND LOADING" : ""), step.file);
emu.tx(AppInfo.getFileUploadCommands(step.as, require("fs").readFileSync(BASE_DIR + "/" + step.file).toString())); emu.tx(AppInfo.getFileUploadCommands(step.as, require("fs").readFileSync(BASE_DIR + "/" + step.file).toString()));
if (step.load){
emu.tx(`\x10load("${step.as}")`);
}
}); });
break; break;
default: ERROR("Unknown step type "+step.t); default: ERROR("Unknown step type "+step.t);