Skip to content

Commit

Permalink
Perform normal copy on AFS
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Oct 5, 2018
1 parent f94adc3 commit a590ea1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/regtesting/do_regtest
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,10 @@ if [[ ${skiptest} != "skiptest" ]]; then
if [[ -f /.dockerenv ]]; then
printf "Inside Docker, using normal copy ... "
cp -a ${dir_base}/${cp2k_dir}/tests ${dir_out}
elif [[ ${source_device} == "/afs" || ${target_device} == "/afs" ]]; then
printf "cannot use hard links with AFS.\n"
printf "Using normal copy instead ... "
cp -a ${dir_base}/${cp2k_dir}/tests ${dir_out}
elif [[ ${source_device} == ${target_device} ]]; then
cp -al ${dir_base}/${cp2k_dir}/tests ${dir_out}/tests || \
cp -rpl ${dir_base}/${cp2k_dir}/tests ${dir_out}/tests
Expand Down

0 comments on commit a590ea1

Please sign in to comment.