Skip to content
Snippets Groups Projects
Commit d93cd94e authored by Pieter Donker's avatar Pieter Donker
Browse files

L2SDP-888, add seperate previous hash for quartus

parent 69cff8ef
No related branches found
No related tags found
1 merge request!15Resolve L2SDP-888
......@@ -62,7 +62,7 @@ hdl_exec "$0" git pull
# get hash from last test if file excists
git_prev_hash="none"
git_hash_filename="${HDL_WORK}"/previous_git_hash.txt
git_hash_filename="${RADIOHDL_LOG_DIR}"/modelsim_previous_git_hash.txt
[[ -f "${git_hash_filename}" ]] && git_prev_hash=$(cat "${git_hash_filename}")
git_active_hash=$(git rev-parse HEAD)
......
......@@ -67,7 +67,7 @@ hdl_exec "$0" git pull
# get hash from last test if file excists
git_prev_hash="none"
git_hash_filename="${HDL_WORK}"/previous_git_hash.txt
git_hash_filename="${RADIOHDL_LOG_DIR}"/quartus_previous_git_hash.txt
[[ -f "${git_hash_filename}" ]] && git_prev_hash=$(cat "${git_hash_filename}")
git_active_hash=$(git rev-parse HEAD)
......@@ -95,3 +95,7 @@ hdl_exec "$0" build_all_images "${BUILDFILE}" 1>> "${LOGFILE}" 2>&1
# Read the log file en send the result email
echo "call quartus_build_images_mail"
hdl_exec "$0" quartus_build_images_mail.py "${LOGFILE}"
# save hash for next run
echo "${git_active_hash}" > "${git_hash_filename}"
echo "done"
......@@ -64,6 +64,9 @@ def main():
msg = MIMEText(message)
msg["From"] = "regtest"
msg["To"] = ", ".join(maillist)
if args.nochange:
msg["Subject"] = f"[REGTEST] - Quartus compile - GIT - nothing changed - {success}"
else:
msg["Subject"] = f"[REGTEST] - Quartus compile - GIT - {success}"
print(msg)
......@@ -215,6 +218,7 @@ if __name__ == "__main__":
# Parse command line arguments
argparser = ArgumentParser(description="Quartus regressiontest mail script.")
argparser.add_argument("logfile", help="choose logfile")
argparser.add_argument("-n", "--nochange", action="store_true", default=False, help="report no test done")
args = argparser.parse_args()
result_file_path = os.path.join(args.logfile)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment