[Buildbot-devel] Running tests as a particular user

Tim Hatch tim at timhatch.com
Wed May 27 01:32:04 UTC 2009


> is there anyway to run a test through buildbot as a
> particular user?  Thanks!

>From buildbot, you use a ShellCommand build step, where the command
includes a way to change user:

If you're on *nix:

    Use sudo(8), allowing the buildbot user to perform certain commands
    as another user by editing sudoers(5), although I imagine this
    wouldn't be practical in a chroot.

If you're on Windows:

    There's a command called 'runas', don't remember if it's installed
    by default.  This probably requires already-elevated privileges, and
    I'm not sure if it works when running buildbot as a service.

If that doesn't answer your question, perhaps you can give more
background into how you're currently running buildbot, and the nature of
what needs to be run.

Tim




More information about the devel mailing list