[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [sysadmin/neon-openqa] neon/lib: chmod in addition to chown the tty so other users can write data as
From:       Harald Sitter <null () kde ! org>
Date:       2018-07-30 13:18:04
Message-ID: E1fk83o-00005F-VT () code ! kde ! org
[Download RAW message or body]

Git commit cd45ad0cd05dca64963feb175b4c738560a5c3c9 by Harald Sitter.
Committed on 30/07/2018 at 13:10.
Pushed by sitter into branch 'master'.

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

M  +2    -0    neon/lib/distribution_neon.pm

https://commits.kde.org/sysadmin/neon-openqa/cd45ad0cd05dca64963feb175b4c73=
8560a5c3c9

diff --git a/neon/lib/distribution_neon.pm b/neon/lib/distribution_neon.pm
index 8f77f87..a3f347e 100644
--- a/neon/lib/distribution_neon.pm
+++ b/neon/lib/distribution_neon.pm
@@ -30,6 +30,7 @@ sub ensure_installed {
     testapi::x11_start_program('konsole');
     assert_screen('konsole');
     testapi::assert_script_sudo("chown $testapi::username /dev/$testapi::s=
erialdev");
+    testapi::assert_script_sudo("chmod 666 /dev/$testapi::serialdev");
 =

     # make sure packagekit service is available
     testapi::assert_script_sudo('systemctl is-active -q packagekit || (sys=
temctl 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/tty=
S0 but
         # on ubuntu that doesn't fly unless chowned first.
         testapi::assert_script_sudo("chown $testapi::username /dev/$testap=
i::serialdev");
+        testapi::assert_script_sudo("chmod 666 /dev/$testapi::serialdev");
     }
 =

     return;

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic