Skip to content

Commit f8d547f

Browse files
[lit] Remove %T from tests
This patch removes %T from tests in preparation for removing the substitution completely. Splitting this off from the actual removal to make it easier to revert the removal of %T in case I missed something. Reviewers: RKSimon, jh7370, cmtice, petrhosek, ilovepi, pogo59 Reviewed By: cmtice, RKSimon, jh7370 Pull Request: #160027
1 parent 37e7ad1 commit f8d547f

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

llvm/utils/lit/tests/Inputs/shtest-shell/valid-shell.txt

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,50 +18,50 @@
1818
# Check force remove commands success whether the directory does or doesn't exist.
1919
#
2020
# Check the mkdir command with -p option.
21-
# RUN: rm -f -r %T/test
22-
# RUN: %{python} %S/../check_path.py dir %T/test > %t.out
21+
# RUN: rm -f -r %t.test
22+
# RUN: %{python} %S/../check_path.py dir %t.test > %t.out
2323
# RUN: FileCheck --check-prefix=REMOVE-PARENT-DIR < %t.out %s
24-
# RUN: mkdir -p %T/test
25-
# RUN: %{python} %S/../check_path.py dir %T/test > %t.out
24+
# RUN: mkdir -p %t.test
25+
# RUN: %{python} %S/../check_path.py dir %t.test > %t.out
2626
# RUN: FileCheck --check-prefix=MAKE-PARENT-DIR < %t.out %s
27-
# RUN: rm -f %T/test || true
28-
# RUN: rm -f -r %T/test
29-
# RUN: %{python} %S/../check_path.py dir %T/test > %t.out
27+
# RUN: rm -f %t.test || true
28+
# RUN: rm -f -r %t.test
29+
# RUN: %{python} %S/../check_path.py dir %t.test > %t.out
3030
# RUN: FileCheck --check-prefix=REMOVE-PARENT-DIR < %t.out %s
3131
#
3232
# MAKE-PARENT-DIR: True
3333
# REMOVE-PARENT-DIR: False
3434
#
3535
# Check the mkdir command without -p option.
3636
#
37-
# RUN: rm -rf %T/test1
38-
# RUN: mkdir %T/test1
39-
# RUN: %{python} %S/../check_path.py dir %T/test1 > %t.out
37+
# RUN: rm -rf %t.test1
38+
# RUN: mkdir %t.test1
39+
# RUN: %{python} %S/../check_path.py dir %t.test1 > %t.out
4040
# RUN: FileCheck --check-prefix=MAKE-DIR < %t.out %s
41-
# RUN: cd %T/test1 && mkdir foo
42-
# RUN: %{python} %S/../check_path.py dir %T/test1 > %t.out
41+
# RUN: cd %t.test1 && mkdir foo
42+
# RUN: %{python} %S/../check_path.py dir %t.test1 > %t.out
4343
# RUN: FileCheck --check-prefix=MAKE-DIR < %t.out %s
44-
# RUN: cd %T && rm -rf %T/test1
45-
# RUN: %{python} %S/../check_path.py dir %T/test1 > %t.out
44+
# RUN: cd .. && rm -rf %t.test1
45+
# RUN: %{python} %S/../check_path.py dir %t.test1 > %t.out
4646
# RUN: FileCheck --check-prefix=REMOVE-DIR < %t.out %s
4747
#
4848
# MAKE-DIR: True
4949
# REMOVE-DIR: False
5050
#
5151
# Check creating and removing multiple folders and rm * operation.
5252
#
53-
# RUN: rm -rf %T/test
54-
# RUN: mkdir -p %T/test/test1 %T/test/test2
55-
# RUN: %{python} %S/../check_path.py dir %T/test %T/test/test1 %T/test/test2 > %t.out
53+
# RUN: rm -rf %t.test
54+
# RUN: mkdir -p %t.test/test1 %t.test/test2
55+
# RUN: %{python} %S/../check_path.py dir %t.test %t.test/test1 %t.test/test2 > %t.out
5656
# RUN: FileCheck --check-prefix=DIRS-EXIST < %t.out %s
57-
# RUN: mkdir %T/test || true
58-
# RUN: echo "create a temp file" > %T/test/temp.write
59-
# RUN: echo "create a temp1 file" > %T/test/test1/temp1.write
60-
# RUN: echo "create a temp2 file" > %T/test/test2/temp2.write
61-
# RUN: %{python} %S/../check_path.py file %T/test/temp.write %T/test/test1/temp1.write %T/test/test2/temp2.write> %t.out
57+
# RUN: mkdir %t.test || true
58+
# RUN: echo "create a temp file" > %t.test/temp.write
59+
# RUN: echo "create a temp1 file" > %t.test/test1/temp1.write
60+
# RUN: echo "create a temp2 file" > %t.test/test2/temp2.write
61+
# RUN: %{python} %S/../check_path.py file %t.test/temp.write %t.test/test1/temp1.write %t.test/test2/temp2.write> %t.out
6262
# RUN: FileCheck --check-prefix=FILES-EXIST < %t.out %s
63-
# RUN: rm -r -f %T/*
64-
# RUN: %{python} %S/../check_path.py dir %T/test > %t.out
63+
# RUN: rm -r -f %t*
64+
# RUN: %{python} %S/../check_path.py dir %t.test > %t.out
6565
# RUN: FileCheck --check-prefix=REMOVE-ALL < %t.out %s
6666
#
6767
# DIRS-EXIST: True
@@ -81,7 +81,7 @@
8181
# RUN: echo "hello-2" > %t1.stdout
8282
# RUN: diff %t.stdout %t1.stdout || true
8383
#
84-
# RUN: mkdir -p %T/dir1 %T/dir2
85-
# RUN: cd %T/dir1 && echo "hello" > temp1.txt
86-
# RUN: cd %T/dir2 && echo "hello" > temp2.txt
87-
# RUN: diff temp2.txt ../dir1/temp1.txt
84+
# RUN: mkdir -p %t.dir1 %t.dir2
85+
# RUN: cd %t.dir1 && echo "hello" > temp1.txt
86+
# RUN: cd %t.dir2 && echo "hello" > temp2.txt
87+
# RUN: diff temp2.txt ../%{t:stem}.tmp.dir1/temp1.txt

0 commit comments

Comments
 (0)