From 694bea187ebc201f0a2a7adfb24c39f864e17794 Mon Sep 17 00:00:00 2001
From: Seth Hillbrand <seth@kipro-pcb.com>
Date: Fri, 26 Nov 2021 10:48:47 -0800
Subject: [PATCH] Explicitly build nets when running test boards

Suggested by @craftyjon, this builds the list of nets needed for DRC
engine before running QA
---
 qa/pcbnew/board_test_utils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qa/pcbnew/board_test_utils.cpp b/qa/pcbnew/board_test_utils.cpp
index 313262dc23..e2d117a15e 100644
--- a/qa/pcbnew/board_test_utils.cpp
+++ b/qa/pcbnew/board_test_utils.cpp
@@ -91,7 +91,7 @@ void LoadBoard( SETTINGS_MANAGER& aSettingsManager, const wxString& aRelPath,
         m_DRCEngine->InitEngine( wxFileName() );
 
     aBoard->GetDesignSettings().m_DRCEngine = m_DRCEngine;
-
+    aBoard->BuildListOfNets();
     aBoard->BuildConnectivity();
 }