summaryrefslogtreecommitdiffstats
path: root/tests/common-utils.rc
blob: 2be4076e8b6564e552d7401a1792a020287b329f (plain)
1
2
3
4
5
6
7

function run_cmd_as_user {
        local user=$1
        shift
        su -m $user -c "$*" || return 1
    return 0
}