Skip to content

Commit b00170b

Browse files
Atm-Saram-alperen-sener
authored andcommitted
Fix AttributeError
1 parent 9d62044 commit b00170b

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

autopts/bot/common.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# auto-pts - The Bluetooth PTS Automation Framework
33
#
44
# Copyright (c) 2018, Intel Corporation.
5+
# Copyright (c) 2025, Atmosic.
56
#
67
# This program is free software; you can redistribute it and/or modify it
78
# under the terms and conditions of the GNU General Public License,
@@ -72,10 +73,6 @@ def __init__(self, **kwargs):
7273
self.add_argument('--simple', action='store_true',
7374
help='Skip build and flash in bot mode.', default=False)
7475

75-
self.add_argument('--nc', dest='copy', action='store_false',
76-
help='Do not copy workspace, open original one. '
77-
'Warning: workspace file might be modified', default=True)
78-
7976
def add_positional_args(self):
8077
self.add_argument("config_path", nargs='?', default='config.py',
8178
help="Path to config.py to use for testing.")

autopts/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Copyright (c) 2017, Intel Corporation.
77
# Copyright (c) 2024, Codecoup.
8+
# Copyright (c) 2025, Atmosic.
89
#
910
# This program is free software; you can redistribute it and/or modify it
1011
# under the terms and conditions of the GNU General Public License,
@@ -483,6 +484,7 @@ def init_pts_thread_entry(proxy, args, exceptions, finish_count):
483484
log("PTS BD_ADDR: %s", proxy.q_bd_addr)
484485

485486
log("Opening workspace: %s", args.workspace)
487+
log("Copy workspace: %s", args.copy)
486488
proxy.open_workspace(args.workspace, args.copy)
487489

488490
if args.bd_addr:

cliparser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# auto-pts - The Bluetooth PTS Automation Framework
55
#
66
# Copyright (c) 2017, Intel Corporation.
7+
# Copyright (c) 2025, Atmosic.
78
#
89
# This program is free software; you can redistribute it and/or modify it
910
# under the terms and conditions of the GNU General Public License,
@@ -96,6 +97,10 @@ def __init__(self, cli_support=None, board_names=None, add_help=True):
9697
self.add_argument("--pylink_reset", action='store_true', default=False,
9798
help="Use pylink reset.")
9899

100+
self.add_argument('--nc', dest='copy', action='store_false',
101+
help='Do not copy workspace, open original one. '
102+
'Warning: workspace file might be modified', default=True)
103+
99104
# Hidden option to save test cases data in TestCase.db
100105
self.add_argument("-s", "--store", action="store_true",
101106
default=False, help=argparse.SUPPRESS)

0 commit comments

Comments
 (0)