diff options
author | Dave Brolley <brolley@redhat.com> | 2009-11-25 14:14:03 -0500 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-11-25 14:14:03 -0500 |
commit | 0da3e7a0e77120670cb69c55ad5418f2bf2afb9d (patch) | |
tree | 3ef463df086114aeb42630db819ff9d048712b97 /testsuite | |
parent | ff3576d585aee3140b41bb77a0e8e4063e704f43 (diff) | |
download | systemtap-steved-0da3e7a0e77120670cb69c55ad5418f2bf2afb9d.tar.gz systemtap-steved-0da3e7a0e77120670cb69c55ad5418f2bf2afb9d.tar.xz systemtap-steved-0da3e7a0e77120670cb69c55ad5418f2bf2afb9d.zip |
- Allow root, the owner of the uprobes build directory and the members of the
group owner of the uprobes buld directory to build uprobes.ko.
- When building uprobes.ko, make all generated files writable by the group
owner of the uprobes build directory.
- Don't change the group owner of the uprobes build directory during
'make install'
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/lib/systemtap.exp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp index 1a73f7cf..f16facc2 100644 --- a/testsuite/lib/systemtap.exp +++ b/testsuite/lib/systemtap.exp @@ -34,16 +34,13 @@ proc uprobes_p {} { set uprobes $env(SYSTEMTAP_RUNTIME)/uprobes set res [catch "exec make -q -C $uprobes uprobes.ko" output] if {$res != 0} { - if {! [installtest_p]} { - # build as user in the source tree - verbose -log "exec make -C $uprobes" - set res [catch "exec make -C $uprobes" output] - verbose -log "OUT $output" - verbose -log "RC $res" - } else { - # build as root in the installed location - set res [as_root "make -C $uprobes"] - } + # build as user at $uprobes which will be the source + # tree for 'make check' and the install tree for + # 'make installcheck'. + verbose -log "exec make -C $uprobes" + set res [catch "exec make -C $uprobes" output] + verbose -log "OUT $output" + verbose -log "RC $res" } if {$res == 0} { return 1 } else { return 0 } } |