Skip to content

Commit

Permalink
Update error management when no tests are collected for windows compa…
Browse files Browse the repository at this point in the history
…tibility.
  • Loading branch information
agrojean-ledger committed Nov 27, 2024
1 parent 45e91f2 commit 90d26c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/appSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,13 +652,15 @@ export function getAppTestsList(targetSelector: TargetSelector, showMenu: boolea
pytest --collect-only -q ${varPrefix}device_option ${device}
else
pytest --collect-only -q
fi;
if [ $? -eq 5 ]; then
exit 0
fi${quotesAroundBashCommand}`,
];

// Executing the command with a callback
const noTestsCollectedReturnCode = 5;
cp.execFile(getTestsListCmd, getTestsListArgs, optionsExec, (error, stdout, stderr) => {
if (error && error.code !== noTestsCollectedReturnCode) {
if (error) {
pushError(`Error while getting tests list: ${error.message}`);
return;
}
Expand Down

0 comments on commit 90d26c5

Please sign in to comment.