Bug 1455241 - [mozinstall] Detach mounted image in install() if path contains space. r=gbrown a=test-only FIREFOX_60b_RELBRANCH
authorHenrik Skupin <mail@hskupin.info>
Fri, 27 Apr 2018 14:00:20 +0200
branchFIREFOX_60b_RELBRANCH
changeset 469805 c7889ba50e125021c8ef9ad54c80f9a76d3b45a5
parent 469804 f3a8986b8de961ec3608211b8677beda32e990cd
child 469806 5fe6cc152322bd2165e88ce753f97ddfcec8fe77
push id9175
push userarchaeopteryx@coole-files.de
push dateMon, 30 Apr 2018 17:10:23 +0000
treeherdermozilla-beta@c7889ba50e12 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown, test-only
bugs1455241
milestone60.0
Bug 1455241 - [mozinstall] Detach mounted image in install() if path contains space. r=gbrown a=test-only MozReview-Commit-ID: GOhiqQUzsRL
testing/mozbase/mozinstall/mozinstall/mozinstall.py
testing/mozbase/mozinstall/tests/installer_stubs/firefox.dmg
testing/mozbase/mozinstall/tests/test_install.py
--- a/testing/mozbase/mozinstall/mozinstall/mozinstall.py
+++ b/testing/mozbase/mozinstall/mozinstall/mozinstall.py
@@ -305,17 +305,17 @@ def _install_dmg(src, dest):
         # copytree() would fail if dest already exists.
         if os.path.exists(dest):
             raise InstallError('App bundle "%s" already exists.' % dest)
 
         shutil.copytree(mounted_path, dest, False)
 
     finally:
         if appDir:
-            subprocess.call('hdiutil detach %s -quiet' % appDir,
+            subprocess.call('hdiutil detach "%s" -quiet' % appDir,
                             shell=True)
 
     return dest
 
 
 def _install_exe(src, dest):
     """Run the MSI installer to silently install the application into the
     destination folder. Return the folder path.
index f7f36f6318ace2e4adcbff5d1e2c1129987530f3..dd9c779dfa988b582555e85d43e1199529575722
GIT binary patch
literal 27309
zc%1E9c|4Tc|Cc01QYu@RsE`=@&e&yNv+vBvHiH?48JXnXRA?%)BviH{Bq4icU&j*4
zdb5TY`_BBN+v0xRU)}G$zwZ6r*L?nX=KY*=-skz8^LamKn;GvN<BcWzcI=?vH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y6bp71L|1nm4CMbPt3H-;#3c>Fm
zE57p`{d<>r@-}wPo^D$vW#K<PhUkCwe*FF_PyUZ?X#Q2JJo#-mG+S4Bny@cN96xH6
zC-mo5dEeI4-?Mf9%CFD+Es;Mj^snOa`#X2}Kf0X}h1#nbeIMcb?Vly|tvh!)tuJGN
zf!B}OxeNbyJNNGp(ieqG0Y4wgZr1PS0!RGc9oYW9bpP8Z5(z}Y|9gVcmZQ^ugiAyM
zk??~Ee_%%Z183RaobNuRefiw{##3gmGt9+@goK2Q<ip>`NJw^&Y-{Q#wom`3+b6%7
bFaM2BeCSxfli;g=qYIn%YitireVzC}<~BW;
--- a/testing/mozbase/mozinstall/tests/test_install.py
+++ b/testing/mozbase/mozinstall/tests/test_install.py
@@ -1,10 +1,12 @@
 from __future__ import absolute_import
 
+import subprocess
+
 import mozinfo
 import mozinstall
 import mozunit
 import pytest
 
 
 @pytest.mark.skipif(
     mozinfo.isWin, reason='Bug 1157352 - New firefox.exe needed for mozinstall 1.12 and higher.')
@@ -64,13 +66,16 @@ def test_install(tmpdir, get_installer):
         installdir_exe = mozinstall.install(get_installer('exe'), tmpdir.join('exe').strpath)
         assert installdir_exe == tmpdir.join('exe', 'firefox').strpath
 
         installdir_zip = mozinstall.install(get_installer('zip'), tmpdir.join('zip').strpath)
         assert installdir_zip == tmpdir.join('zip', 'firefox').strpath
 
     elif mozinfo.isMac:
         installdir = mozinstall.install(get_installer('dmg'), tmpdir.strpath)
-        assert installdir == tmpdir.realpath().join('FirefoxStub.app').strpath
+        assert installdir == tmpdir.realpath().join('Firefox Stub.app').strpath
+
+        mounted_images = subprocess.check_output(['hdiutil', 'info'])
+        assert get_installer('dmg') not in mounted_images
 
 
 if __name__ == '__main__':
     mozunit.main()