File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -415,15 +415,23 @@ def reset_mocks():
415
415
@mock .patch ("pythonforandroid.bootstrap.shprint" )
416
416
@mock .patch ("pythonforandroid.bootstrap.sh.Command" )
417
417
@mock .patch ("pythonforandroid.build.ensure_dir" )
418
+ @mock .patch ("pythonforandroid.archs.glob" )
418
419
@mock .patch ("pythonforandroid.archs.find_executable" )
419
420
def test_bootstrap_strip (
420
421
self ,
421
422
mock_find_executable ,
423
+ mock_glob ,
422
424
mock_ensure_dir ,
423
425
mock_sh_command ,
424
426
mock_sh_print ,
425
427
):
426
- mock_find_executable .return_value = "arm-linux-androideabi-gcc"
428
+ mock_find_executable .return_value = os .path .join (
429
+ self .ctx ._ndk_dir ,
430
+ "toolchains/llvm/prebuilt/linux-x86_64/bin/clang" ,
431
+ )
432
+ mock_glob .return_value = [
433
+ os .path .join (self .ctx ._ndk_dir , "toolchains" , "llvm" )
434
+ ]
427
435
# prepare arch, bootstrap, distribution and PythonRecipe
428
436
arch = ArchARMv7_a (self .ctx )
429
437
bs = Bootstrap ().get_bootstrap (self .bootstrap_name , self .ctx )
You can’t perform that action at this time.
0 commit comments