1From 860cea0bba7f78cf4cbb78251849e6ef159e6914 Mon Sep 17 00:00:00 2001
2From: Steve Muckle <smuckle@google.com>
3Date: Mon, 9 Oct 2017 15:06:34 -0700
4Subject: [PATCH] selftests/exec: use /system/bin/sh
5
6The Android shell is located at /system/bin/sh.
7
8Bug: 67016227
9Test: run vts-kernel -m VtsKernelLinuxKselftestStaging
10Change-Id: I1b33f382325011f507c7a0bb2120e5ff70c2534c
11Signed-off-by: Steve Muckle <smuckle@google.com>
12---
13 tools/testing/selftests/exec/execveat.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/tools/testing/selftests/exec/execveat.c b/tools/testing/selftests/exec/execveat.c
17index 67cd4597db2b..1d1f28894199 100644
18--- a/tools/testing/selftests/exec/execveat.c
19+++ b/tools/testing/selftests/exec/execveat.c
20@@ -372,7 +372,7 @@ static int run_tests(void)
21 static void prerequisites(void)
22 {
23 	int fd;
24-	const char *script = "#!/bin/sh\nexit $*\n";
25+	const char *script = "#!/system/bin/sh\nexit $*\n";
26
27 	/* Create ephemeral copies of files */
28 	exe_cp("execveat", "execveat.ephemeral");
29--
302.16.0.rc1.238.g530d649a79-goog
31
32