* Re: [dts] [PATCH V1] tests/unit_tests_loopback:rm exists file before cp
2020-12-18 11:36 [dts] [PATCH V1] tests/unit_tests_loopback:rm exists file before cp Ling Wei
@ 2020-12-18 3:42 ` Ling, WeiX
2020-12-18 5:15 ` Zhao, HaiyangX
2020-12-21 7:55 ` Tu, Lijuan
1 sibling, 1 reply; 4+ messages in thread
From: Ling, WeiX @ 2020-12-18 3:42 UTC (permalink / raw)
To: Ling, WeiX, dts
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
Tested-by: Wei Ling <weix.ling@intel.com>
Regards,
Ling Wei
> -----Original Message-----
> From: Ling Wei <weix.ling@intel.com>
> Sent: Friday, December 18, 2020 07:37 PM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V1] tests/unit_tests_loopback:rm exists file before cp
[-- Attachment #2: TestUnitTestsLoopback.log --]
[-- Type: application/octet-stream, Size: 796997 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] tests/unit_tests_loopback:rm exists file before cp
2020-12-18 3:42 ` Ling, WeiX
@ 2020-12-18 5:15 ` Zhao, HaiyangX
0 siblings, 0 replies; 4+ messages in thread
From: Zhao, HaiyangX @ 2020-12-18 5:15 UTC (permalink / raw)
To: Ling, WeiX, dts
Acked-by: Haiyang Zhao <haiyangx.zhao@intel.com>
Best Regards,
Zhao Haiyang
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> Sent: Friday, December 18, 2020 11:42
> To: Ling, WeiX <weix.ling@intel.com>; dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/unit_tests_loopback:rm exists file before
> cp
>
> Tested-by: Wei Ling <weix.ling@intel.com>
>
> Regards,
> Ling Wei
>
> > -----Original Message-----
> > From: Ling Wei <weix.ling@intel.com>
> > Sent: Friday, December 18, 2020 07:37 PM
> > To: dts@dpdk.org
> > Cc: Ling, WeiX <weix.ling@intel.com>
> > Subject: [dts][PATCH V1] tests/unit_tests_loopback:rm exists file before cp
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dts] [PATCH V1] tests/unit_tests_loopback:rm exists file before cp
@ 2020-12-18 11:36 Ling Wei
2020-12-18 3:42 ` Ling, WeiX
2020-12-21 7:55 ` Tu, Lijuan
0 siblings, 2 replies; 4+ messages in thread
From: Ling Wei @ 2020-12-18 11:36 UTC (permalink / raw)
To: dts; +Cc: Ling Wei
rm exists file before cp
Signed-off-by: Ling Wei <weix.ling@intel.com>
---
tests/TestSuite_unit_tests_loopback.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_unit_tests_loopback.py b/tests/TestSuite_unit_tests_loopback.py
index 6babc2a1..0198a913 100644
--- a/tests/TestSuite_unit_tests_loopback.py
+++ b/tests/TestSuite_unit_tests_loopback.py
@@ -71,6 +71,7 @@ class TestUnitTestsLoopback(TestCase):
self.max_traffic_burst = self.get_max_traffic_burst()
self.dut.send_expect("sed -i -e 's/#define MAX_TRAFFIC_BURST %s/#define MAX_TRAFFIC_BURST 32/' app/test/test_pmd_perf.c" % self.max_traffic_burst, "# ", 30)
self.tmp_path = '/tmp/test_pmd_perf.c'
+ self.dut.send_expect("rm -fr %s" % self.tmp_path, "# ")
self.dut.send_expect("cp app/test/test_pmd_perf.c %s" % self.tmp_path, "# ")
def set_up(self):
@@ -133,6 +134,7 @@ class TestUnitTestsLoopback(TestCase):
"""
Run after each test case.
"""
+ self.dut.send_expect("rm -fr app/test/test_pmd_perf.c", "# ")
self.dut.send_expect("cp %s app/test/test_pmd_perf.c" % self.tmp_path, "# ")
self.dut.kill_all()
@@ -140,7 +142,6 @@ class TestUnitTestsLoopback(TestCase):
"""
Run after each test suite.
"""
- self.dut.send_expect("cp %s app/test/test_pmd_perf.c" % self.tmp_path, "# ")
self.dut.send_expect("sed -i -e 's/#define MAX_TRAFFIC_BURST 32/#define MAX_TRAFFIC_BURST %s/' app/test/test_pmd_perf.c" % self.max_traffic_burst, "# ", 30)
self.dut.build_install_dpdk(self.target)
self.dut.kill_all()
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] tests/unit_tests_loopback:rm exists file before cp
2020-12-18 11:36 [dts] [PATCH V1] tests/unit_tests_loopback:rm exists file before cp Ling Wei
2020-12-18 3:42 ` Ling, WeiX
@ 2020-12-21 7:55 ` Tu, Lijuan
1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-12-21 7:55 UTC (permalink / raw)
To: Ling, WeiX, dts; +Cc: Ling, WeiX
> rm exists file before cp
>
> Signed-off-by: Ling Wei <weix.ling@intel.com>
Applied with commit message changed
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-12-21 7:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18 11:36 [dts] [PATCH V1] tests/unit_tests_loopback:rm exists file before cp Ling Wei
2020-12-18 3:42 ` Ling, WeiX
2020-12-18 5:15 ` Zhao, HaiyangX
2020-12-21 7:55 ` Tu, Lijuan
test suite reviews and discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
dts@dpdk.org
public-inbox-index dts
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://inbox.dpdk.org/inbox.dpdk.dts
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git