1. 11 2月, 2016 2 次提交
  2. 10 2月, 2016 3 次提交
  3. 09 2月, 2016 1 次提交
  4. 06 2月, 2016 1 次提交
  5. 05 2月, 2016 6 次提交
  6. 04 2月, 2016 10 次提交
  7. 03 2月, 2016 4 次提交
  8. 29 1月, 2016 4 次提交
  9. 28 1月, 2016 6 次提交
  10. 27 1月, 2016 3 次提交
    • L
      avocado.utils.software_manager: Use sudo if a command requires root · dc2df236
      Lucas Meneghel Rodrigues 提交于
      Instead of assuming we have administrative privileges to
      run software manager related commands, use sudo in commands
      that do require root. We now assume you're running the
      test as a user that has sudo configuration such that no
      password will be prompted to execute that command [1].
      
      A place where we need such a provision is when running on
      Amazon AWS instances (we can't run as root, but the base
      user of the image has the appropriate sudo configuration).
      
      [1] Running as root means that sudo won't be necessary,
      but figuring that out is responsibility of the process
      APIs, that were modified to take a sudo parameter and
      figure things out based on that.
      Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
      dc2df236
    • L
      avocado.utils.service: Use sudo if a command requires root · 3654551e
      Lucas Meneghel Rodrigues 提交于
      Instead of assuming we have administrative privileges to
      run service manager related commands, use sudo in commands
      that do require root. We now assume you're running the
      test as a user that has sudo configuration such that no
      password will be prompted to execute that command [1].
      
      A place where we need such a provision is when running on
      Amazon AWS instances (we can't run as root, but the base
      user of the image has the appropriate sudo configuration).
      
      [1] Running as root means that sudo won't be necessary,
      but figuring that out is responsibility of the process
      APIs, that were modified to take a sudo parameter and
      figure things out based on that.
      Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
      3654551e
    • L
      avocado.utils.process: Add 'sudo' parameter to run and system APIs · 7dad50e7
      Lucas Meneghel Rodrigues 提交于
      Some commands do require admin privileges to run, but we
      can't use the 'root' user in some testing scenarios [1].
      
      So let's add a 'sudo' parameter to process.run(), process.system()
      and process.system_output() interfaces, that will append
      a sudo command to the original command string, causing it
      to be executed under sudo. The basic assumption here is
      that the user executing the tests was added to the sudoers
      file in such a way that it can run administrative commands
      without a password.
      
      [1] One specific environment where we can't use the root
      user is when avocado runs on an AWS (Amazon Web Services)
      instance.
      Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
      7dad50e7