File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
- 59 1 * * 7 PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole/pihole_updateGravity.log || cat /var/log/pihole/pihole_updateGravity.log
1
+ 59 1 * * 0 PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole/pihole_updateGravity.log || cat /var/log/pihole/pihole_updateGravity.log
2
2
00 00 * * * PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole flush once quiet
3
3
59 17 * * * PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker
Original file line number Diff line number Diff line change @@ -12,11 +12,13 @@ def test_pihole_gid_env_var(docker):
12
12
func = docker .run ("id -g pihole" )
13
13
assert "456" in func .stdout
14
14
15
+
15
16
def test_pihole_ftl_version (docker ):
16
17
func = docker .run ("pihole-FTL -vv" )
17
18
assert func .rc == 0
18
19
assert "Version:" in func .stdout
19
20
21
+
20
22
# Wait 5 seconds for startup, then kill the start.sh script
21
23
# Finally, grep the FTL log to see if it has been shut down cleanly
22
24
def test_pihole_ftl_clean_shutdown (docker ):
@@ -30,3 +32,14 @@ def test_pihole_ftl_clean_shutdown(docker):
30
32
)
31
33
assert "INFO: ########## FTL terminated after" in func .stdout
32
34
assert "(code 0)" in func .stdout
35
+
36
+
37
+ def test_cronfile_valid (docker ):
38
+ func = docker .run (
39
+ """
40
+ /usr/bin/crontab /crontab.txt
41
+ crond -d 8 -L /cron.log
42
+ grep 'parse error' /cron.log
43
+ """
44
+ )
45
+ assert "parse error" not in func .stdout
You can’t perform that action at this time.
0 commit comments