* [PATCH 1/3] test-runner: clean up temporary files
@ 2021-02-05 23:53 James Prestwood
2021-02-05 23:53 ` [PATCH 2/3] test-runner: add monitor to path James Prestwood
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: James Prestwood @ 2021-02-05 23:53 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
---
tools/test-runner | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/test-runner b/tools/test-runner
index a9b13aa8..6fd4dd1f 100755
--- a/tools/test-runner
+++ b/tools/test-runner
@@ -497,6 +497,8 @@ class Namespace:
print("Killing process %s" % p.name)
self.stop_process(p)
+ os.remove(self.dbus_address.split('=')[0])
+
def __del__(self):
print("Removing namespace %s" % self.name)
self.reset()
@@ -1168,6 +1170,10 @@ def run_auto_tests(ctx, args):
finally:
post_test(ctx, copied)
+ shutil.rmtree('/tmp/certs')
+ shutil.rmtree('/tmp/secrets')
+ os.remove('/tmp/phonesim.conf')
+
# Write out kernel log
if ctx.args.log:
Process(["dmesg"], ctx=ctx, wait=True)
--
2.26.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] test-runner: add monitor to path
2021-02-05 23:53 [PATCH 1/3] test-runner: clean up temporary files James Prestwood
@ 2021-02-05 23:53 ` James Prestwood
2021-02-05 23:53 ` [PATCH 3/3] test-runner: print error if kernel/qemu path is not found James Prestwood
2021-02-05 23:58 ` [PATCH 1/3] test-runner: clean up temporary files Denis Kenzior
2 siblings, 0 replies; 4+ messages in thread
From: James Prestwood @ 2021-02-05 23:53 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 562 bytes --]
---
tools/test-runner | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/test-runner b/tools/test-runner
index 6fd4dd1f..8b6a57a6 100755
--- a/tools/test-runner
+++ b/tools/test-runner
@@ -1230,6 +1230,7 @@ def run_tests():
os.environ['PATH'] = '%s/src' % args.testhome
os.environ['PATH'] += ':%s/tools' % args.testhome
os.environ['PATH'] += ':%s/client' % args.testhome
+ os.environ['PATH'] += ':%s/monitor' % args.testhome
os.environ['PATH'] += ':%s/wired' % args.testhome
os.environ['PATH'] += ':' + args.path
--
2.26.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] test-runner: print error if kernel/qemu path is not found
2021-02-05 23:53 [PATCH 1/3] test-runner: clean up temporary files James Prestwood
2021-02-05 23:53 ` [PATCH 2/3] test-runner: add monitor to path James Prestwood
@ 2021-02-05 23:53 ` James Prestwood
2021-02-05 23:58 ` [PATCH 1/3] test-runner: clean up temporary files Denis Kenzior
2 siblings, 0 replies; 4+ messages in thread
From: James Prestwood @ 2021-02-05 23:53 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
---
tools/test-runner | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/tools/test-runner b/tools/test-runner
index 8b6a57a6..0321128c 100755
--- a/tools/test-runner
+++ b/tools/test-runner
@@ -1264,11 +1264,13 @@ class Main:
self.parser.add_argument('--qemu', '-q',
metavar='<QEMU binary>', type=str,
help='QEMU binary to use',
- dest='qemu')
+ dest='qemu',
+ default=None)
self.parser.add_argument('--kernel', '-k', metavar='<kernel>',
type=str,
help='Path to kernel image',
- dest='kernel')
+ dest='kernel',
+ default=None)
self.parser.add_argument('--verbose', '-v', metavar='<list>',
type=str,
help='Comma separated list of applications',
@@ -1350,6 +1352,9 @@ class Main:
if self.args.qemu is None:
qemu_binary = find_binary(qemu_table)
+ if not qemu_binary:
+ print("Could not find qemu binary")
+ quit()
else:
if path_exists(self.args.qemu):
qemu_binary = self.args.qemu
@@ -1360,6 +1365,9 @@ class Main:
if self.args.kernel is None:
kernel_binary = find_binary(kernel_table)
+ if not kernel_binary:
+ print("Could not find kernel image")
+ quit()
else:
if path_exists(self.args.kernel):
kernel_binary = self.args.kernel
--
2.26.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] test-runner: clean up temporary files
2021-02-05 23:53 [PATCH 1/3] test-runner: clean up temporary files James Prestwood
2021-02-05 23:53 ` [PATCH 2/3] test-runner: add monitor to path James Prestwood
2021-02-05 23:53 ` [PATCH 3/3] test-runner: print error if kernel/qemu path is not found James Prestwood
@ 2021-02-05 23:58 ` Denis Kenzior
2 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2021-02-05 23:58 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 182 bytes --]
Hi James,
On 2/5/21 5:53 PM, James Prestwood wrote:
> ---
> tools/test-runner | 6 ++++++
> 1 file changed, 6 insertions(+)
>
All applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-02-05 23:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-05 23:53 [PATCH 1/3] test-runner: clean up temporary files James Prestwood
2021-02-05 23:53 ` [PATCH 2/3] test-runner: add monitor to path James Prestwood
2021-02-05 23:53 ` [PATCH 3/3] test-runner: print error if kernel/qemu path is not found James Prestwood
2021-02-05 23:58 ` [PATCH 1/3] test-runner: clean up temporary files Denis Kenzior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox