@@ -2939,16 +2939,11 @@ def run_check():
29392939 'git_repo' :
'[email protected] :easybuilders/testrepository.git' ,
29402940 'test_prefix' : self .test_prefix ,
29412941 }
2942- reprod_tar_cmd_pattern = (
2943- r' running shell command "find {} -name \".git\" -prune -o -print0 -exec touch -t 197001010100 {{}} \; |'
2944- r' LC_ALL=C sort --zero-terminated | tar --create --no-recursion --owner=0 --group=0 --numeric-owner'
2945- r' --format=gnu --null --files-from - | gzip --no-name > %(test_prefix)s/target/test.tar.gz'
2946- )
29472942
29482943 expected = '\n ' .join ([
29492944 r' running shell command "git clone --depth 1 --branch tag_for_tests %(git_repo)s"' ,
29502945 r" \(in .*/tmp.*\)" ,
2951- reprod_tar_cmd_pattern . format ("testrepository" ),
2946+ ft . reproducible_archive_cmd ("testrepository" , "%(test_prefix)s/target/test.tar.gz " ),
29522947 r" \(in .*/tmp.*\)" ,
29532948 ]) % string_args
29542949 run_check ()
@@ -2957,7 +2952,7 @@ def run_check():
29572952 expected = '\n ' .join ([
29582953 r' running shell command "git clone --depth 1 --branch tag_for_tests %(git_repo)s test123"' ,
29592954 r" \(in .*/tmp.*\)" ,
2960- reprod_tar_cmd_pattern . format ("test123" ),
2955+ ft . reproducible_archive_cmd ("test123" , "%(test_prefix)s/target/test.tar.gz " ),
29612956 r" \(in .*/tmp.*\)" ,
29622957 ]) % string_args
29632958 run_check ()
@@ -2967,7 +2962,7 @@ def run_check():
29672962 expected = '\n ' .join ([
29682963 r' running shell command "git clone --depth 1 --branch tag_for_tests --recursive %(git_repo)s"' ,
29692964 r" \(in .*/tmp.*\)" ,
2970- reprod_tar_cmd_pattern . format ("testrepository" ),
2965+ ft . reproducible_archive_cmd ("testrepository" , "%(test_prefix)s/target/test.tar.gz " ),
29712966 r" \(in .*/tmp.*\)" ,
29722967 ]) % string_args
29732968 run_check ()
@@ -2977,7 +2972,7 @@ def run_check():
29772972 ' running shell command "git clone --depth 1 --branch tag_for_tests --recursive'
29782973 + ' --recurse-submodules=\' !vcflib\' --recurse-submodules=\' !sdsl-lite\' %(git_repo)s"' ,
29792974 r" \(in .*/tmp.*\)" ,
2980- reprod_tar_cmd_pattern . format ("testrepository" ),
2975+ ft . reproducible_archive_cmd ("testrepository" , "%(test_prefix)s/target/test.tar.gz " ),
29812976 r" \(in .*/tmp.*\)" ,
29822977 ]) % string_args
29832978 run_check ()
@@ -2991,7 +2986,7 @@ def run_check():
29912986 + ' clone --depth 1 --branch tag_for_tests --recursive'
29922987 + ' --recurse-submodules=\' !vcflib\' --recurse-submodules=\' !sdsl-lite\' %(git_repo)s"' ,
29932988 r" \(in .*/tmp.*\)" ,
2994- reprod_tar_cmd_pattern . format ("testrepository" ),
2989+ ft . reproducible_archive_cmd ("testrepository" , "%(test_prefix)s/target/test.tar.gz " ),
29952990 r" \(in .*/tmp.*\)" ,
29962991 ]) % string_args
29972992 run_check ()
@@ -3015,7 +3010,7 @@ def run_check():
30153010 r" \(in .*/tmp.*\)" ,
30163011 r' running shell command "git checkout 8456f86 && git submodule update --init --recursive"' ,
30173012 r" \(in testrepository\)" ,
3018- reprod_tar_cmd_pattern . format ("testrepository" ),
3013+ ft . reproducible_archive_cmd ("testrepository" , "%(test_prefix)s/target/test.tar.gz " ),
30193014 r" \(in .*/tmp.*\)" ,
30203015 ]) % string_args
30213016 run_check ()
@@ -3026,7 +3021,7 @@ def run_check():
30263021 r" \(in .*/tmp.*\)" ,
30273022 r' running shell command "git checkout 8456f86"' ,
30283023 r" \(in testrepository\)" ,
3029- reprod_tar_cmd_pattern . format ("testrepository" ),
3024+ ft . reproducible_archive_cmd ("testrepository" , "%(test_prefix)s/target/test.tar.gz " ),
30303025 r" \(in .*/tmp.*\)" ,
30313026 ]) % string_args
30323027 run_check ()
@@ -3038,7 +3033,7 @@ def run_check():
30383033 r" \(in /.*\)" ,
30393034 r' running shell command "git checkout 8456f86"' ,
30403035 r" \(in /.*/testrepository\)" ,
3041- reprod_tar_cmd_pattern . format ("testrepository" ),
3036+ ft . reproducible_archive_cmd ("testrepository" , "%(test_prefix)s/target/test.tar.gz " ),
30423037 r" \(in /.*\)" ,
30433038 ]) % string_args
30443039 run_check ()
0 commit comments