update comments

This commit is contained in:
diginc 2016-09-13 23:42:05 -05:00
parent aac4695bb0
commit 56119ec268
2 changed files with 2 additions and 3 deletions

View file

@ -936,6 +936,7 @@ readSetupVarsIfPresent() {
}
printSetupVars() {
# Currently debug test function only
echo "piholeInterface=${piholeInterface}"
echo "IPv4addr=${IPv4addr}"
echo "piholeIPv6=${piholeIPv6}"

View file

@ -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')