Skip to content

Commit 5273d40

Browse files
committed
fix abc temporary directory not apended before the abc raw file to look if it exist
1 parent 7800854 commit 5273d40

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

vtr_flow/scripts/run_vtr_flow.pl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,12 +654,16 @@
654654
$q = &system_with_timeout( $abc_path, "abc".$domain_itter.".out", $timeout, $temp_dir, "-c",
655655
$abc_commands);
656656

657-
if ( not -e $post_abc_raw_blif
658-
or $q ne "success") {
657+
if ( $q ne "success") {
659658
$error_status = "failed: abc";
660659
$error_code = 1;
661660
last ABC_OPTIMIZATION;
662661
}
662+
elsif ( not -e "${temp_dir}/$post_abc_raw_blif" ) {
663+
$error_status = "failed: abc did not produce the expected output: ${temp_dir}/${post_abc_raw_blif}";
664+
$error_code = 1;
665+
last ABC_OPTIMIZATION;
666+
}
663667

664668
#restore the current valgrind flag
665669
$valgrind = $skip_valgrind;

0 commit comments

Comments
 (0)