From 73e961d7c20135c993189d7967d2aca12849df0c Mon Sep 17 00:00:00 2001 From: Zachary Snow Date: Mon, 9 Sep 2019 23:37:54 +0200 Subject: [PATCH] simulation output properly filters VCD log line --- test/lib/functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/lib/functions.sh b/test/lib/functions.sh index 96a9b17..a5fc1b0 100644 --- a/test/lib/functions.sh +++ b/test/lib/functions.sh @@ -32,12 +32,12 @@ simulate() { echo "$iv_output" fi # run the simulation - $sim_prog > $sim_log + $sim_prog > "$sim_log.temp" assertTrue "simulating $1 failed" $? # remove the date from the VCD sed -i.orig -e "1,3d" "$sim_vcd" - # remove the "opened file..." prompt from the log - sed -i.orig -e "1,1d" "$sim_log" + # remove extraneous log lines + cat "$sim_log.temp" | grep -v "VCD info: dumpfile" > $sim_log } assertConverts() {