Commit ce61c10
Fix patch apply issue
Fix patch application issue caused by incorrect current directory
Fixes 8c1cc5b: ("fix patch apply issue")
--Before--
ERROR| Traceback (most recent call last):
ERROR| File "ebizzy.py", line 76, in setUp
ERROR| File "/usr/lib64/python3.9/posixpath.py", line 375, in abspath
ERROR| path = os.fspath(path)
ERROR| TypeError: expected str, bytes or os.PathLike object, not NoneType
ERROR|
ERROR| ERROR 1-ebizzy.py:Ebizzy.test;run-duration-default-perf-pin-size-threads-workers-e56a ->
TestSetupFail: expected str, bytes or os.PathLike object, not NoneType
And similar issue in dwh and linsched tests
This change fixes that
--After--
DEBUG| DATA (filename=dwh.cpp) => /root/avocado-misc-tests/cpu/dwh.py.data/dwh.cpp (found at file source dir)
DATA (filename=Makefile) => /root/avocado-misc-tests/cpu/dwh.py.data/Makefile (found at file source dir)
DATA (filename=fofd.patch) => /root/avocado-misc-tests/cpu/dwh.py.data/fofd.patch (found at file source dir)
INFO | Running 'patch -p0 < /root/avocado-misc-tests/cpu/dwh.py.data/fofd.patch'
DEBUG| [stdout] patching file dwh.cpp
INFO | Command 'patch -p0 < /root/avocado-misc-tests/cpu/dwh.py.data/fofd.patch' finished with 0 after 0.003100977s
INFO | Running 'make'
Signed-off-by: Ayush Jain <ayush.jain3@amd.com>1 parent 38a2471 commit ce61c10
3 files changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | | - | |
70 | | - | |
| 68 | + | |
71 | 69 | | |
72 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | 75 | | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments