Skip to content

Commit 27d940c

Browse files
authored
Update .github/workflows/tests_link_nvidia_host_libraries.yml
1 parent 621a949 commit 27d940c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/tests_link_nvidia_host_libraries.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ jobs:
169169
# Remove all write permissions on /opt/eessi so any attempts to write files fail
170170
chmod -R a-w /opt/eessi
171171
172-
# Store file timestamps before second run
173-
stat_before=$(stat "/opt/eessi/nvidia/x86_64/host/driver_version.txt")
172+
# Store file timestamps before second run (ignoring access time)
173+
stat_before=$(stat --format="%n %s %y %U %G %m %i" "/opt/eessi/nvidia/x86_64/host/driver_version.txt")
174174
175175
# Run script again
176176
output=$(./scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh || { echo "Script returned non-zero: $?"; echo $output; exit 1; })
@@ -179,8 +179,8 @@ jobs:
179179
180180
echo ">>> Running checks"
181181
182-
# Store file timestamps after second run
183-
stat_after=$(stat "/opt/eessi/nvidia/x86_64/host/driver_version.txt")
182+
# Store file timestamps after second run (ignoring access time)
183+
stat_after=$(stat --format="%n %s %y %U %G %m %i" "/opt/eessi/nvidia/x86_64/host/driver_version.txt")
184184
185185
# Compare timestamps - should be the same (files shouldn't be modified)
186186
if [[ "$stat_before" != "$stat_after" ]]; then

0 commit comments

Comments
 (0)