nmtst: add nmtst_reexec_sudo() function
authorThomas Haller <thaller@redhat.com>
Wed, 23 Apr 2014 14:54:54 +0000 (16:54 +0200)
committerThomas Haller <thaller@redhat.com>
Thu, 5 Jun 2014 16:12:57 +0000 (18:12 +0200)
commit7a7dd9203d23311931fef9dd499249e29d256bcc
tree437de20a2eeb445ab9d2e9481eed9341a28ab5c5
parent9df3a23d26e1c2da04a0db9e048d01d358862145
nmtst: add nmtst_reexec_sudo() function

Interpret environment variable NMTST_DEBUG which allows
to specify 'sudo-cmd=CMD'. If the test program calls
nmtst_reexec_sudo(), it will `exec CMD "$0" "$@"`.

Signed-off-by: Thomas Haller <thaller@redhat.com>
include/nm-test-utils.h
tools/test-sudo-wrapper.sh [new file with mode: 0755]