runapptests - Allow directly loading from upload step

pull/3399/head
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(()=>{
console.log("> UPLOADING" + (step.load ? " AND LOADING" : ""), step.file);
emu.tx(AppInfo.getFileUploadCommands(step.as, require("fs").readFileSync(BASE_DIR + "/" + step.file).toString()));
if (step.load){
emu.tx(`\x10load("${step.as}")`);
}
});
break;
default: ERROR("Unknown step type "+step.t);