@@ -61,14 +61,14 @@ def generate(self):
61
61
ms.platform = self.options.platform
62
62
ms.generate()
63
63
""" )
64
-
64
+
65
65
# Remove custom set of keys to test default values
66
66
app = app .replace (f'ms.configuration_key = "{ config_key } "' , "" ) if config_key is None else app
67
67
app = app .replace (f'ms.platform_key = "{ platform_key } "' , "" ) if platform_key is None else app
68
68
config_key_expected = "Configuration" if config_key is None else config_key
69
69
platform_key_expected = "Platform" if platform_key is None else platform_key
70
-
71
- client .save ({"app/conanfile.py" : app ,
70
+
71
+ client .save ({"app/conanfile.py" : app ,
72
72
"lib/conanfile.py" : GenConanfile ("lib" , "0.1" ).with_package_type ("header-library" )})
73
73
client .run ("create lib" )
74
74
client .run (f'install app -s build_type={ build_type } -s arch={ arch } -o *:platform={ exp_platform } -o *:configuration="{ configuration } "' )
@@ -181,18 +181,12 @@ def package_info(self):
181
181
def test_msbuilddeps_relocatable (withdepl ):
182
182
c = TestClient ()
183
183
c .save ({
184
- "libh/conanfile.py" : GenConanfile ("libh" , "0.1" )
185
- .with_package_type ("header-library" ),
186
- "libs/conanfile.py" : GenConanfile ("libs" , "0.2" )
187
- .with_package_type ("static-library" )
188
- .with_requires ("libh/0.1" ),
189
- "libd/conanfile.py" : GenConanfile ("libd" , "0.3" )
190
- .with_package_type ("shared-library" ),
191
- "app/conanfile.py" : GenConanfile ()
192
- .with_requires ("libh/0.1" )
193
- .with_requires ("libs/0.2" )
194
- .with_requires ("libd/0.3" )
195
- .with_settings ("arch" , "build_type" ),
184
+ "libh/conanfile.py" : GenConanfile ("libh" , "0.1" ).with_package_type ("header-library" ),
185
+ "libs/conanfile.py" : GenConanfile ("libs" , "0.2" ).with_package_type ("static-library" )
186
+ .with_requires ("libh/0.1" ),
187
+ "libd/conanfile.py" : GenConanfile ("libd" , "0.3" ).with_package_type ("shared-library" ),
188
+ "app/conanfile.py" : GenConanfile ().with_requires ("libh/0.1" , "libs/0.2" , "libd/0.3" )
189
+ .with_settings ("arch" , "build_type" ),
196
190
})
197
191
198
192
c .run ("create libh" )
@@ -206,7 +200,7 @@ def test_msbuilddeps_relocatable(withdepl):
206
200
value = text .split (f"<{ marker } >" )[1 ].split (f"</{ marker } >" )[0 ]
207
201
if withdepl :
208
202
# path should be relative, since artifacts are moved along with project
209
- prefix = '$(MSBuildThisFileDirectory)/ '
203
+ prefix = '$(MSBuildThisFileDirectory)\\ '
210
204
assert value .startswith (prefix )
211
205
tail = value [len (prefix ):]
212
206
assert not os .path .isabs (tail )
@@ -222,5 +216,5 @@ def test_msbuilddeps_relocatable(withdepl):
222
216
for fn in propsfiles :
223
217
text = c .load (fn )
224
218
text = text .replace ('\\ ' , '/' )
225
- dir = c .current_folder .replace ('\\ ' , '/' )
226
- assert dir not in text
219
+ folder = c .current_folder .replace ('\\ ' , '/' )
220
+ assert folder not in text
0 commit comments