summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-lib.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test-lib.sh b/tests/test-lib.sh
index 60e92d3c6..d99e3a966 100644
--- a/tests/test-lib.sh
+++ b/tests/test-lib.sh
@@ -124,8 +124,7 @@ uid_is_privileged_()
get_process_status_()
{
- local pid=$1
- sed -n '/^State:[ ]*\([[:alpha:]]\).*/s//\1/p' /proc/$pid/status
+ sed -n '/^State:[ ]*\([[:alpha:]]\).*/s//\1/p' /proc/$1/status
}
# Convert an ls-style permission string, like drwxr----x and -rw-r-x-wx