From 16854d41e3e7384aaee3a498114f799d25f87822 Mon Sep 17 00:00:00 2001
From: Dominik Loidolt <dominik.loidolt@univie.ac.at>
Date: Tue, 16 May 2023 15:35:21 +0200
Subject: [PATCH] fix wine setup

---
 test/cmp_tool/cmp_tool_integration_test.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/cmp_tool/cmp_tool_integration_test.py b/test/cmp_tool/cmp_tool_integration_test.py
index d12f5a3..cf83095 100755
--- a/test/cmp_tool/cmp_tool_integration_test.py
+++ b/test/cmp_tool/cmp_tool_integration_test.py
@@ -23,16 +23,16 @@ IMAGETTE_HEADER_SIZE = GENERIC_HEADER_SIZE+4
 IMAGETTE_ADAPTIVE_HEADER_SIZE = GENERIC_HEADER_SIZE+12
 NON_IMAGETTE_HEADER_SIZE = GENERIC_HEADER_SIZE+32
 
+WINE_TEST_SETUP = False
+my_env=None
 if sys.platform != 'win32' and sys.platform != 'cygwin':
     if Path('cmp_tool.exe').exists():
         # try to detect cross compile setup
         # and use wine to run windows executable
         WINE_TEST_SETUP = True
-    else:
-        WINE_TEST_SETUP = False
-# disable wine debug output
-my_env = os.environ.copy()
-my_env["WINEDEBUG"] = f"-all"
+        # disable wine debug output
+        my_env = os.environ.copy()
+        my_env["WINEDEBUG"] = f"-all"
 
 def call_cmp_tool(args):
     if WINE_TEST_SETUP:
-- 
GitLab