diff --git a/tools/testrun b/tools/testrun index 665cbe2e7f7..dd6304381a1 100755 --- a/tools/testrun +++ b/tools/testrun @@ -203,7 +203,11 @@ $SIG{'ALRM'} = "alarmhandler"; # mounted that's not on campus or add relevant ! -fstype nfs or similar. # -open(FIND,"find / -type f \\( -name \"*.EXE\" -o -name \"*.exe\" -o -name \"*.scr\" -o -name \"*.SCR\" \\) -print|"); +$startdir = '/'; + +$startdir = $ARGV[0] if ($ARGV[0] && (-d $ARGV[0])); + +open(FIND,"find $startdir -type f \\( -name \"*.EXE\" -o -name \"*.exe\" -o -name \"*.scr\" -o -name \"*.SCR\" \\) -print|"); while ($exe=) { chop($exe);