File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 22#  ghe-restore command tests run in parallel
33set  -e
44
5- #  use tempdir to fix rsync file issues in parallel execution
6- tempdir=$( mktemp -d -t backup-utils-restore-temp-XXXXXX) 
7- 
85export  GHE_PARALLEL_ENABLED=yes
9- export  GHE_EXTRA_RSYNC_OPTS=" --copy-dirlinks --temp-dir=$tempdir "   #  handle symlink directories for tests
6+ 
7+ #  use temp dir to fix rsync file issues in parallel execution:
8+ #  we are imitating remote server by local files, and running rsync in parallel may cause
9+ #  race conditions when two processes writing to same folder
10+ tempdir=$( mktemp -d -t backup-utils-restore-temp-XXXXXX) 
11+ export  GHE_EXTRA_RSYNC_OPTS=" --copy-dirlinks --temp-dir=$tempdir " 
1012
1113TESTS_DIR=" $PWD /$( dirname " $0 " ) " 
1214#  shellcheck source=test/test-ghe-restore.sh
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments