File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
graalpython/lib-python/3/test Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1701,8 +1701,17 @@ def test_tarfile_vs_tar(self):
17011701 import platform
17021702 if int (platform .mac_ver ()[0 ].split ('.' )[0 ]) >= 11 :
17031703 tar_cmd .insert (1 , '--no-mac-metadata' )
1704- subprocess .check_call (tar_cmd , cwd = root_dir ,
1705- stdout = subprocess .DEVNULL )
1704+ # GraalPy change: retry without --no-mac-metadata, it's not available on all CI machines
1705+ try :
1706+ subprocess .check_call (tar_cmd , cwd = root_dir ,
1707+ stdout = subprocess .DEVNULL )
1708+ except subprocess .CalledProcessError :
1709+ if '--no-mac-metadata' in tar_cmd :
1710+ tar_cmd .remove ('--no-mac-metadata' )
1711+ subprocess .check_call (tar_cmd , cwd = root_dir ,
1712+ stdout = subprocess .DEVNULL )
1713+ else :
1714+ raise
17061715
17071716 self .assertTrue (os .path .isfile (tarball2 ))
17081717 # let's compare both tarballs
You can’t perform that action at this time.
0 commit comments