mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-26 18:35:05 +00:00
Merge branch 'stewardship/verified-pr-batch-3538-3566' into stewardship/verified-pr-batch-3602-3621-owned
This commit is contained in:
9 files changed
+58
-672
No files matched your search
@@ -15,6 +15,8 @@ const commands = [
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
console.log('Skipped: Santa Loop examples require Bash');
|
||||
console.log('Passed: 0');
|
||||
console.log('Failed: 0');
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -172,6 +172,19 @@ async function runTests() {
|
||||
assert.strictEqual(groupFailures(runs).size, 3);
|
||||
})) passed += 1; else failed += 1;
|
||||
|
||||
if (await test('keeps dotted diagnostic prose after extensionless Windows paths separate', async () => {
|
||||
const reasons = [
|
||||
String.raw`Command C:\tools\node failed to open config.json: EACCES`,
|
||||
String.raw`Command D:\tools\node timed out opening config.json: EACCES`,
|
||||
];
|
||||
assert.deepStrictEqual(reasons.map(normalizeFailureReason), [
|
||||
'command <path> failed to open config.json: eacces',
|
||||
'command <path> timed out opening config.json: eacces',
|
||||
]);
|
||||
const runs = reasons.map((failureReason, index) => makeSkillRun({ id: `dotted-${index}`, failureReason }));
|
||||
assert.strictEqual(groupFailures(runs).size, 2);
|
||||
})) passed += 1; else failed += 1;
|
||||
|
||||
if (await test('groupFailures handles mixed outcome casing', async () => {
|
||||
const runs = [
|
||||
makeSkillRun({ id: 'r1', outcome: 'FAILURE', failureReason: 'timeout' }),
|
||||
|
||||
Reference in new issue
Block a user