diff options
| -rwxr-xr-x | scripts/test-remote-image | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/test-remote-image b/scripts/test-remote-image index 7a00db92c0..698948b834 100755 --- a/scripts/test-remote-image +++ b/scripts/test-remote-image | |||
| @@ -92,13 +92,11 @@ def get_args_parser(): | |||
| 92 | parser.add_argument('--skip-download', required=False, action="store_true", dest="skip_download", default=False, help='Skip downloading the images completely. This needs the correct files to be present in the directory specified by the target profile.') | 92 | parser.add_argument('--skip-download', required=False, action="store_true", dest="skip_download", default=False, help='Skip downloading the images completely. This needs the correct files to be present in the directory specified by the target profile.') |
| 93 | return parser | 93 | return parser |
| 94 | 94 | ||
| 95 | class BaseTargetProfile(object): | 95 | class BaseTargetProfile(object, metaclass=ABCMeta): |
| 96 | """ | 96 | """ |
| 97 | This class defines the meta profile for a specific target (MACHINE type + image type). | 97 | This class defines the meta profile for a specific target (MACHINE type + image type). |
| 98 | """ | 98 | """ |
| 99 | 99 | ||
| 100 | __metaclass__ = ABCMeta | ||
| 101 | |||
| 102 | def __init__(self, image_type): | 100 | def __init__(self, image_type): |
| 103 | self.image_type = image_type | 101 | self.image_type = image_type |
| 104 | 102 | ||
| @@ -191,13 +189,11 @@ class AutoTargetProfile(BaseTargetProfile): | |||
| 191 | return controller.get_extra_files() | 189 | return controller.get_extra_files() |
| 192 | 190 | ||
| 193 | 191 | ||
| 194 | class BaseRepoProfile(object): | 192 | class BaseRepoProfile(object, metaclass=ABCMeta): |
| 195 | """ | 193 | """ |
| 196 | This class defines the meta profile for an images repository. | 194 | This class defines the meta profile for an images repository. |
| 197 | """ | 195 | """ |
| 198 | 196 | ||
| 199 | __metaclass__ = ABCMeta | ||
| 200 | |||
| 201 | def __init__(self, repolink, localdir): | 197 | def __init__(self, repolink, localdir): |
| 202 | self.localdir = localdir | 198 | self.localdir = localdir |
| 203 | self.repolink = repolink | 199 | self.repolink = repolink |
