Skip to content

Commit

Permalink
Substitute distutils in regression testing infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderhe committed Feb 15, 2024
1 parent 0419968 commit a035155
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/prog/fortnet/bin/testwithworkdir
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ reference files with the output of the current version of the program.


import os
import shutil
import subprocess
import argparse
from distutils.dir_util import copy_tree
from argparse import RawTextHelpFormatter
import testwithworkdir as twd
from testwithworkdir import TestWithWorkDirError
Expand All @@ -45,8 +45,8 @@ def main(cmdlineargs=None):

args = parse_cmdline_args(cmdlineargs)

copy_tree(os.path.join(args.templateroot, args.test),
os.path.join(args.workdir, args.test))
shutil.copytree(os.path.join(args.templateroot, args.test),
os.path.join(args.workdir, args.test), dirs_exist_ok=True)

cmd = args.prerun + ' ' + args.program
cwd = os.path.join(args.workdir, args.test)
Expand Down

0 comments on commit a035155

Please sign in to comment.