Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(devops): normalize parquet file paths (#41823)

Simon Knott2579345e89b4
diff --git a/tests/config/parquetReporter.ts b/tests/config/parquetReporter.ts
index b2dc4cde0e..ae0b83d06a 100644
--- a/tests/config/parquetReporter.ts
+++ b/tests/config/parquetReporter.ts
@@ -105,7 +105,7 @@ class ParquetReporter implements Reporter {
appender.appendVarchar(botName);
appender.appendVarchar(projectName);
appender.appendVarchar(titles.join(' › '));
- appender.appendVarchar(path.relative(this._config.rootDir, test.location.file));
+ appender.appendVarchar(toPosixPath(path.relative(this._config.rootDir, test.location.file)));
appender.appendInteger(test.location.line);
appender.appendInteger(test.location.column);
appender.appendVarchar(test.expectedStatus);
@@ -143,6 +143,10 @@ function errorMessage(result: TestResult): string | null {
return messages.join('\n\n');
}
+function toPosixPath(aPath: string): string {
+ return aPath.split(path.sep).join(path.posix.sep);
+}
+
function appendNullableVarchar(appender: DuckDBAppender, value: string | null) {
if (value === null)
appender.appendNull();