From: Stefano Rivera <stefanor@debian.org>
Date: Thu, 6 Jun 2024 13:49:51 +0100
Subject: Allow overriding the path to test resources

They aren't installed in the binary package.

Forwarded: not-needed
---
 beets/test/_common.py | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

--- a/beets/test/_common.py
+++ b/beets/test/_common.py
@@ -41,13 +41,15 @@
 
 # Test resources path.
 RSRC = util.bytestring_path(
-    os.path.abspath(
-        os.path.join(
-            os.path.dirname(__file__),
-            os.path.pardir,
-            os.path.pardir,
-            "test",
-            "rsrc",
+    os.environ.get(
+        "RSRC", os.path.abspath(
+            os.path.join(
+                os.path.dirname(__file__),
+                os.path.pardir,
+                os.path.pardir,
+                "test",
+                "rsrc",
+            )
         )
     )
 )
