diff options
Diffstat (limited to 'tests/common-utils.rc')
-rw-r--r-- | tests/common-utils.rc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/common-utils.rc b/tests/common-utils.rc new file mode 100644 index 00000000000..2be4076e8b6 --- /dev/null +++ b/tests/common-utils.rc @@ -0,0 +1,7 @@ + +function run_cmd_as_user { + local user=$1 + shift + su -m $user -c "$*" || return 1 + return 0 +} |