]> sourceware.org Git - systemtap.git/commit
Don't spawn uprobes tests with sudo
authorJosh Stone <jistone@redhat.com>
Wed, 5 Aug 2009 23:55:24 +0000 (16:55 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 6 Aug 2009 00:06:11 +0000 (17:06 -0700)
commitf249edcd5f135278e15ccafb497be520c325a5e4
treebfe1c5c56dc3c19f55406594b7d92a5182ed11f8
parentdceb9cebada8326f7eb5097475303c28e81b105b
Don't spawn uprobes tests with sudo

Using spawn with sudo doesn't work well, because the password prompt
won't go to the correct TTY.  The only reason that the uprobes tests
needed to do this is so uprobes.ko could be built as root.  Now instead,
I've added a pre-check that will directly call the uprobes make with
sudo (via the as_root proc).

* testsuite/lib/systemtap.exp (uprobes_p): Check and build uprobes.ko.
* testsuite/systemtap.base/uprobes.exp: Use uprobes_p; don't spawn sudo.
* testsuite/systemtap.base/bz6850.exp: Ditto.
* testsuite/systemtap.base/bz10078.exp: Ditto.
* testsuite/systemtap.base/bz6905.exp: sudo isn't needed for -p2.
testsuite/lib/systemtap.exp
testsuite/systemtap.base/bz10078.exp
testsuite/systemtap.base/bz6850.exp
testsuite/systemtap.base/bz6905.exp
testsuite/systemtap.base/uprobes.exp
This page took 0.028399 seconds and 5 git commands to generate.