diff options
author | Kevin Hilman <khilman@baylibre.com> | 2018-11-19 11:29:12 -0800 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2018-11-22 15:22:56 +0000 |
commit | b820f82dac96ccb4b223a55488d9ffb9e1177358 (patch) | |
tree | fe71ae4baea0ffbe41f513467488676544402817 /meta-agl-bsp/recipes-support/ptest-runner/ptest-runner/0005-main.c-Use-realpath-to-get-the-actual-directory-of-p.patch | |
parent | 8a0cd7c69c5df85924f3f065d0ef0f71d490e599 (diff) |
meta-agl-bsp: ptest-runner: v2.2 and LAVA support
Upgrade ptest-runner to v2.2 (first 6 patches), and add the
WIP support for LAVA signal (patch 7).
From branch:
https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=timo/lava-ptest-runner2
Commit:
https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=timo/lava-ptest-runner2&id=11b29ce444610a07067a89b38e9e85c2162bbf67
Change-Id: Ic4ee5e3a9ab796fe7ccd1810b31e582370f99a25
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'meta-agl-bsp/recipes-support/ptest-runner/ptest-runner/0005-main.c-Use-realpath-to-get-the-actual-directory-of-p.patch')
-rw-r--r-- | meta-agl-bsp/recipes-support/ptest-runner/ptest-runner/0005-main.c-Use-realpath-to-get-the-actual-directory-of-p.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-agl-bsp/recipes-support/ptest-runner/ptest-runner/0005-main.c-Use-realpath-to-get-the-actual-directory-of-p.patch b/meta-agl-bsp/recipes-support/ptest-runner/ptest-runner/0005-main.c-Use-realpath-to-get-the-actual-directory-of-p.patch new file mode 100644 index 000000000..cb9e20a32 --- /dev/null +++ b/meta-agl-bsp/recipes-support/ptest-runner/ptest-runner/0005-main.c-Use-realpath-to-get-the-actual-directory-of-p.patch @@ -0,0 +1,42 @@ +From 5bd94a93c89978c5e729db86b86b49919cd3b523 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= <anibal.limon@linaro.org> +Date: Wed, 25 Apr 2018 12:05:29 -0500 +Subject: [PATCH 5/7] main.c: Use realpath to get the actual directory of + ptests +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fix usage of relative paths in -d argument. + +$ ./ptest-runner -d ./tests/data + +Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> +--- + main.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/main.c b/main.c +index 505829cdad58..593aff1a1956 100644 +--- a/main.c ++++ b/main.c +@@ -19,6 +19,7 @@ + * Aníbal Limón <anibal.limon@intel.com> + */ + ++#include <limits.h> + #include <unistd.h> + #include <string.h> + #include <stdlib.h> +@@ -70,7 +71,7 @@ main(int argc, char *argv[]) + switch (opt) { + case 'd': + free(opts.directory); +- opts.directory = strdup(optarg); ++ opts.directory = realpath(optarg, NULL); + CHECK_ALLOCATION(opts.directory, 1, 1); + break; + case 'l': +-- +2.11.0 + |