Commit cd45ad0c authored by Harald Sitter's avatar Harald Sitter

chmod in addition to chown the tty so other users can write data as well

this is useful to enable secondary users to be used for certain things and
still retain working IO
parent 1162a642
......@@ -30,6 +30,7 @@ sub ensure_installed {
testapi::x11_start_program('konsole');
assert_screen('konsole');
testapi::assert_script_sudo("chown $testapi::username /dev/$testapi::serialdev");
testapi::assert_script_sudo("chmod 666 /dev/$testapi::serialdev");
# make sure packagekit service is available
testapi::assert_script_sudo('systemctl is-active -q packagekit || (systemctl unmask -q packagekit ; systemctl start -q packagekit)');
......@@ -153,6 +154,7 @@ sub activate_console {
# Mostly just a workaround. os-autoinst wants to write to /dev/ttyS0 but
# on ubuntu that doesn't fly unless chowned first.
testapi::assert_script_sudo("chown $testapi::username /dev/$testapi::serialdev");
testapi::assert_script_sudo("chmod 666 /dev/$testapi::serialdev");
}
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment