Skip to content

Commit

Permalink
adapt rtest to windows msys2
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed May 21, 2016
1 parent 975701d commit 3b73d02
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rtest
Expand Up @@ -227,7 +227,15 @@ sub runone
while(<LOG>) {
s/^[ \t]*//;
s/[ \t]+/ /;
print RES $_;
$str = $_;
# fix generated files on windows
if ($^O =~ /^msys/) {
# replace /X.mo?_tempNNNN/X.mo?: -> /X.mo?
if ( $str =~ m/(.*\/)[^\/]+\.mo*_temp[0-9]{4}\/(.*\.mo*\:.*)/ ) {
$str = $1 . $2;
}
}
print RES $str;
}
close LOG;
close RES;
Expand Down

0 comments on commit 3b73d02

Please sign in to comment.