mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 06:46:09 +00:00
Collect complete GPU details for export reports
This commit is contained in:
@@ -459,6 +459,7 @@ describe("export hardware diagnostics", () => {
|
||||
|
||||
const hardware = await getExportHardwareInfo();
|
||||
|
||||
expect(electronAppMock.getGPUInfo).toHaveBeenCalledWith("complete");
|
||||
expect(hardware).toMatchObject({
|
||||
platform: process.platform,
|
||||
arch: process.arch,
|
||||
|
||||
@@ -1957,7 +1957,7 @@ export async function getExportHardwareInfo(): Promise<ExportHardwareInfo> {
|
||||
gpus: [],
|
||||
};
|
||||
try {
|
||||
sanitizedGpuInfo = sanitizeExportGpuInfo(await app.getGPUInfo("basic"));
|
||||
sanitizedGpuInfo = sanitizeExportGpuInfo(await app.getGPUInfo("complete"));
|
||||
} catch {
|
||||
// Hardware diagnostics are best effort and must not affect exporting.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user