From 4ceb1c5bf91dea2453d9b888138c40e4f97d408d Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Fri, 16 Oct 2015 20:28:29 -0400 Subject: util.py: return the created path Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- test/pacman/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/pacman/util.py') diff --git a/test/pacman/util.py b/test/pacman/util.py index aa9c63f7..e2acc52f 100644 --- a/test/pacman/util.py +++ b/test/pacman/util.py @@ -84,7 +84,7 @@ def mkfile(base, name, data=""): if info["isdir"]: if not os.path.isdir(path): os.makedirs(path, 0o755) - return + return path dir_path = os.path.dirname(path) if dir_path and not os.path.isdir(dir_path): @@ -98,6 +98,8 @@ def mkfile(base, name, data=""): if info["perms"]: os.chmod(path, info["perms"]) + return path + def writedata(filename, data): if isinstance(data, list): data = "\n".join(data) -- cgit v1.2.3-24-g4f1b