From ec9285cf2a845587c17c3823488f1ec22db2ebe5 Mon Sep 17 00:00:00 2001
From: dwn1c21 <d.newbrook@soton.ac.uk>
Date: Tue, 2 May 2023 15:31:02 +0000
Subject: [PATCH] Fixed test case for deployment on ZCU104

---
 .gitlab-ci.yml | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eefc0cc..4483c25 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -170,13 +170,10 @@ deploy-job-ZCU104:      # This job runs in the deploy stage.
     - screen -r zynq -X stuff "deactivate \n"
     - screen -r zynq -X stuff "exit \n"
     # test the screenlog for "Overlay Loaded"
-    - if (grep -r "Overlay Loaded" ./screenlog)
-    - then
-    -   echo "Bit file loaded successfully"
-    - else
-    -   echo "Bit file load failed"
-    -   exit 1
-    - fi
+    - cp ./Cortex-M0/nanosoc/systems/mcu/fpga_imp/CI_verification/test_bitfile_ZCU104.sh
+    - chmod +x test_bitfile_ZCU104.sh
+    - ./test_bitfile_ZCU104.sh
+
   after_script:
     # cleanup xilinx directories and quit screen
     - screen -r zynq -X stuff "rm load_bitfile.py \n"
-- 
GitLab