mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-07 17:15:29 +00:00
[js/web] update npm test to load test cases only for required backends (#17555)
### Description update npm test to load test cases for required backends. No need to load test case list for the backends that we don't test.
This commit is contained in:
parent
fdb132643d
commit
155887593d
1 changed files with 4 additions and 2 deletions
|
|
@ -84,8 +84,10 @@ async function main() {
|
|||
.flat();
|
||||
|
||||
for (const backend of DEFAULT_BACKENDS) {
|
||||
nodeTests.set(backend, loadNodeTests(backend, allNodeTestsFolders));
|
||||
opTests.set(backend, loadOpTests(backend));
|
||||
if (args.backends.indexOf(backend) !== -1) {
|
||||
nodeTests.set(backend, loadNodeTests(backend, allNodeTestsFolders));
|
||||
opTests.set(backend, loadOpTests(backend));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue