aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Liaw <edliaw@google.com>2022-04-14 16:28:40 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-04-14 16:28:40 +0000
commitf42e2171dc10c0129ed592ca9bfad870a9d18b7d (patch)
treecf672dc76b5b8bf1e16da080c414b6cbce6c0bf2
parent73ffa1a84e56b7bd287e0b10a65aed6fcd6318c0 (diff)
parent7e00212091685e5c48b9b0ab9ae5b558233a741d (diff)
downloadltp-f42e2171dc10c0129ed592ca9bfad870a9d18b7d.tar.gz
Merge changes I972bb7ac,I8b286cc2
* changes: lib/tst_test: setup TCID earlier in do_setup() Revert "ltp: statx07 quote tmpdir in sh command"
-rw-r--r--lib/tst_test.c4
-rw-r--r--testcases/kernel/syscalls/statx/statx07.c4
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/tst_test.c b/lib/tst_test.c
index 36a4809c7..55449c80b 100644
--- a/lib/tst_test.c
+++ b/lib/tst_test.c
@@ -915,7 +915,7 @@ static void do_setup(int argc, char *argv[])
assert_test_fn();
- tid = get_tid(argv);
+ TCID = tid = get_tid(argv);
if (tst_test->sample)
tst_test = tst_timer_test_setup(tst_test);
@@ -1412,8 +1412,6 @@ void tst_run_tcases(int argc, char *argv[], struct tst_test *self)
do_setup(argc, argv);
- TCID = tid;
-
SAFE_SIGNAL(SIGALRM, alarm_handler);
SAFE_SIGNAL(SIGUSR1, heartbeat_handler);
diff --git a/testcases/kernel/syscalls/statx/statx07.c b/testcases/kernel/syscalls/statx/statx07.c
index 9f361eb02..ec1cdd190 100644
--- a/testcases/kernel/syscalls/statx/statx07.c
+++ b/testcases/kernel/syscalls/statx/statx07.c
@@ -133,7 +133,7 @@ static void setup(void)
snprintf(server_path, sizeof(server_path), ":%s/%s", cwd, SERV_PATH);
snprintf(cmd, sizeof(cmd),
- "exportfs -i -o no_root_squash,rw,sync,no_subtree_check,fsid=%d \"*%.1024s\"",
+ "exportfs -i -o no_root_squash,rw,sync,no_subtree_check,fsid=%d *%.1024s",
getpid(), server_path);
exported = 1;
@@ -157,7 +157,7 @@ static void cleanup(void)
if (!exported)
return;
snprintf(cmd, sizeof(cmd),
- "exportfs -u *:\"%s/%s\"", cwd, SERV_PATH);
+ "exportfs -u *:%s/%s", cwd, SERV_PATH);
if (tst_system(cmd) == -1)
tst_res(TWARN | TST_ERR, "failed to clear exportfs");