We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd53cfc commit 95c4d02Copy full SHA for 95c4d02
tests/test_ldcache_hook.bats
@@ -71,10 +71,17 @@ helper_run_hooked_podman() {
71
size=$(sed -E 's/.*cache_size=([0-9]+).*/\1/' <<<"$summary")
72
mtime=$(sed -E 's/.*cache_mtime=([0-9]+).*/\1/' <<<"$summary")
73
74
+ # sanity check in case of empty values
75
+ assert [ -n "$size" ]
76
+ assert [ -n "$mtime" ]
77
+
78
# Check time is a number > 0 and so is size
79
assert_regex "$size" '^[0-9]+$'
80
assert_regex "$mtime" '^[0-9]+$'
- assert_gt "$mtime" 0
81
82
+ # a great-than check needs to pass by bash and then asserted
83
+ run bash -c "[[ $mtime -gt 0 ]]"
84
+ assert_success
85
}
86
87
#@test "/etc/ld.so.cache exists after hook" {
0 commit comments