]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Update tests.yml
authorPaul Luse <paul.e.luse@intel.com>
Thu, 24 Apr 2025 14:30:10 +0000 (07:30 -0700)
committerGitHub <noreply@github.com>
Thu, 24 Apr 2025 14:30:10 +0000 (07:30 -0700)
Signed-off-by: Paul Luse <paul.e.luse@intel.com>
.github/workflows/tests.yml

index ce940108febd364a0b75dcf7e70d49a49b8097f5..6f8e2b8ec737a240425ae53c9545ec222cc1c450 100644 (file)
@@ -31,9 +31,15 @@ jobs:
      - name: 'Prepare machine'
        run: |
           cd ..
-          vagrant halt
+          vagrant snapshot restore clean_vm_v42
+          echo "FYI vagrant restore command finished with exit code: $?"
+          sleep 2
           vagrant status
           vagrant up
+          sleep 2
+          vagrant ssh -c "sudo timedatectl set-timezone UTC && \
+            sudo systemctl restart chronyd && sudo chronyc -a makestep && sleep 1"
+          echo "FYI vagrant time command finished with exit code: $?" 
 
      - name: 'Run tests'
        id: testing
@@ -69,9 +75,7 @@ jobs:
     runs-on: self-hosted
     needs: [upstream_tests]
     steps:
-      - name: Restore clean VM
+      - name: Halt VM
         run:  |
           cd ..
-          vagrant up
-          vagrant ssh -c "sudo mdadm -Ss"
           vagrant halt