Skip to content

Commit ae6310e

Browse files
authored
Merge pull request #3944 from harsh-kumar-patwa/fix-headless-save-images
Skip save_images on headless machines without display
2 parents d205bf1 + 49167a7 commit ae6310e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flow/scripts/final_report.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ report_cell_usage
6464
report_metrics 6 "finish"
6565

6666
# Save a final image if openroad is compiled with the gui
67-
if { [ord::openroad_gui_compiled] } {
67+
# and a display is available (skip on headless machines)
68+
if { [ord::openroad_gui_compiled] && [env_var_exists_and_non_empty DISPLAY] } {
6869
gui::show "source $::env(SCRIPTS_DIR)/save_images.tcl" false
6970
}

0 commit comments

Comments
 (0)