mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-20 10:16:51 +00:00
update comments
This commit is contained in:
parent
aac4695bb0
commit
56119ec268
2 changed files with 2 additions and 3 deletions
|
@ -936,6 +936,7 @@ readSetupVarsIfPresent() {
|
|||
}
|
||||
|
||||
printSetupVars() {
|
||||
# Currently debug test function only
|
||||
echo "piholeInterface=${piholeInterface}"
|
||||
echo "IPv4addr=${IPv4addr}"
|
||||
echo "piholeIPv6=${piholeIPv6}"
|
||||
|
|
|
@ -36,7 +36,7 @@ def test_setupVars_are_sourced_to_global_scope(Pihole):
|
|||
assert "{}={}".format(k, v) in output
|
||||
|
||||
def test_setupVars_saved_to_file(Pihole):
|
||||
''' one function imports, other functions read these variables '''
|
||||
''' confirm saved settings are written to a file for future updates to re-use '''
|
||||
set_setup_vars = ''
|
||||
for k,v in SETUPVARS.iteritems():
|
||||
set_setup_vars += "{}={}\n".format(k, v)
|
||||
|
@ -55,8 +55,6 @@ def test_setupVars_saved_to_file(Pihole):
|
|||
for k,v in SETUPVARS.iteritems():
|
||||
assert "{}={}".format(k, v) in output
|
||||
|
||||
|
||||
|
||||
def write_test_script(Pihole, script):
|
||||
Pihole.run('cat <<EOF> /test\n{}\nEOF'.format(script))
|
||||
Pihole.run('chmod +x /test')
|
||||
|
|
Loading…
Add table
Reference in a new issue