summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-08 18:22:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-18 11:28:58 +0100
commit913df0de3515a9b3dc28b0de1a6c352aba510916 (patch)
treeaa8e2e5f6fc0ad165f576f6a37654359f38a7948 /meta/lib/oeqa/core
parentf3457dfbc3fa121466d0ac1954e7fd14f63a5502 (diff)
downloadpoky-913df0de3515a9b3dc28b0de1a6c352aba510916.tar.gz
meta/lib+scripts: Convert to SPDX license headers
This adds SPDX license headers in place of the wide assortment of things currently in our script headers. We default to GPL-2.0-only except for the oeqa code where it was clearly submitted and marked as MIT on the most part or some scripts which had the "or later" GPL versioning. The patch also drops other obsolete bits of file headers where they were encoountered such as editor modelines, obsolete maintainer information or the phrase "All rights reserved" which is now obsolete and not required in copyright headers (in this case its actually confusing for licensing as all rights were not reserved). More work is needed for OE-Core but this takes care of the bulk of the scripts and meta/lib directories. The top level LICENSE files are tweaked to match the new structure and the SPDX naming. (From OE-Core rev: 3248a9e3c5a197321b1c4417509b9309cc3bae97) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core')
-rw-r--r--meta/lib/oeqa/core/case.py5
-rw-r--r--meta/lib/oeqa/core/cases/example/test_basic.py4
-rw-r--r--meta/lib/oeqa/core/context.py6
-rw-r--r--meta/lib/oeqa/core/decorator/__init__.py5
-rw-r--r--meta/lib/oeqa/core/decorator/data.py5
-rw-r--r--meta/lib/oeqa/core/decorator/depends.py5
-rw-r--r--meta/lib/oeqa/core/decorator/oetag.py5
-rw-r--r--meta/lib/oeqa/core/decorator/oetimeout.py5
-rw-r--r--meta/lib/oeqa/core/exception.py5
-rw-r--r--meta/lib/oeqa/core/loader.py5
-rw-r--r--meta/lib/oeqa/core/runner.py5
-rw-r--r--meta/lib/oeqa/core/target/__init__.py5
-rw-r--r--meta/lib/oeqa/core/target/qemu.py5
-rw-r--r--meta/lib/oeqa/core/target/ssh.py5
-rw-r--r--meta/lib/oeqa/core/tests/cases/data.py5
-rw-r--r--meta/lib/oeqa/core/tests/cases/depends.py5
-rw-r--r--meta/lib/oeqa/core/tests/cases/loader/valid/another.py5
-rw-r--r--meta/lib/oeqa/core/tests/cases/oetag.py5
-rw-r--r--meta/lib/oeqa/core/tests/cases/timeout.py5
-rw-r--r--meta/lib/oeqa/core/tests/common.py5
-rwxr-xr-xmeta/lib/oeqa/core/tests/test_data.py4
-rwxr-xr-xmeta/lib/oeqa/core/tests/test_decorators.py6
-rwxr-xr-xmeta/lib/oeqa/core/tests/test_loader.py6
-rwxr-xr-xmeta/lib/oeqa/core/tests/test_runner.py6
-rw-r--r--meta/lib/oeqa/core/utils/concurrencytest.py2
-rw-r--r--meta/lib/oeqa/core/utils/misc.py5
-rw-r--r--meta/lib/oeqa/core/utils/path.py5
-rw-r--r--meta/lib/oeqa/core/utils/test.py5
28 files changed, 108 insertions, 31 deletions
diff --git a/meta/lib/oeqa/core/case.py b/meta/lib/oeqa/core/case.py
index 917a2aa3f8..54977c809f 100644
--- a/meta/lib/oeqa/core/case.py
+++ b/meta/lib/oeqa/core/case.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4import unittest 7import unittest
5 8
diff --git a/meta/lib/oeqa/core/cases/example/test_basic.py b/meta/lib/oeqa/core/cases/example/test_basic.py
index 11cf3800cc..d77edcdcec 100644
--- a/meta/lib/oeqa/core/cases/example/test_basic.py
+++ b/meta/lib/oeqa/core/cases/example/test_basic.py
@@ -1,5 +1,7 @@
1# Copyright (C) 2016 Intel Corporation 1# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 2#
3# SPDX-License-Identifier: MIT
4#
3 5
4from oeqa.core.case import OETestCase 6from oeqa.core.case import OETestCase
5from oeqa.core.decorator.depends import OETestDepends 7from oeqa.core.decorator.depends import OETestDepends
diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py
index 821aec8836..09627044c8 100644
--- a/meta/lib/oeqa/core/context.py
+++ b/meta/lib/oeqa/core/context.py
@@ -1,5 +1,7 @@
1# Copyright (C) 2016 Intel Corporation 1## Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 2#
3# SPDX-License-Identifier: MIT
4#
3 5
4import os 6import os
5import sys 7import sys
diff --git a/meta/lib/oeqa/core/decorator/__init__.py b/meta/lib/oeqa/core/decorator/__init__.py
index 14d7bfcd35..923b218266 100644
--- a/meta/lib/oeqa/core/decorator/__init__.py
+++ b/meta/lib/oeqa/core/decorator/__init__.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4from functools import wraps 7from functools import wraps
5from abc import abstractmethod, ABCMeta 8from abc import abstractmethod, ABCMeta
diff --git a/meta/lib/oeqa/core/decorator/data.py b/meta/lib/oeqa/core/decorator/data.py
index f0f65abb39..babc9789d6 100644
--- a/meta/lib/oeqa/core/decorator/data.py
+++ b/meta/lib/oeqa/core/decorator/data.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4from oeqa.core.exception import OEQAMissingVariable 7from oeqa.core.exception import OEQAMissingVariable
5 8
diff --git a/meta/lib/oeqa/core/decorator/depends.py b/meta/lib/oeqa/core/decorator/depends.py
index 950dbaa67a..33f0841cab 100644
--- a/meta/lib/oeqa/core/decorator/depends.py
+++ b/meta/lib/oeqa/core/decorator/depends.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4from unittest import SkipTest 7from unittest import SkipTest
5 8
diff --git a/meta/lib/oeqa/core/decorator/oetag.py b/meta/lib/oeqa/core/decorator/oetag.py
index ad38ab78a5..8c31138dac 100644
--- a/meta/lib/oeqa/core/decorator/oetag.py
+++ b/meta/lib/oeqa/core/decorator/oetag.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4from . import OETestFilter, registerDecorator 7from . import OETestFilter, registerDecorator
5from oeqa.core.utils.misc import strToList 8from oeqa.core.utils.misc import strToList
diff --git a/meta/lib/oeqa/core/decorator/oetimeout.py b/meta/lib/oeqa/core/decorator/oetimeout.py
index a247583f7f..df90d1c798 100644
--- a/meta/lib/oeqa/core/decorator/oetimeout.py
+++ b/meta/lib/oeqa/core/decorator/oetimeout.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4import signal 7import signal
5from . import OETestDecorator, registerDecorator 8from . import OETestDecorator, registerDecorator
diff --git a/meta/lib/oeqa/core/exception.py b/meta/lib/oeqa/core/exception.py
index 732f2efdeb..05be0ed21f 100644
--- a/meta/lib/oeqa/core/exception.py
+++ b/meta/lib/oeqa/core/exception.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4class OEQAException(Exception): 7class OEQAException(Exception):
5 pass 8 pass
diff --git a/meta/lib/oeqa/core/loader.py b/meta/lib/oeqa/core/loader.py
index e66de32cb1..7fea0585c7 100644
--- a/meta/lib/oeqa/core/loader.py
+++ b/meta/lib/oeqa/core/loader.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4import os 7import os
5import re 8import re
diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py
index efd981d0f5..930620ea19 100644
--- a/meta/lib/oeqa/core/runner.py
+++ b/meta/lib/oeqa/core/runner.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4import os 7import os
5import time 8import time
diff --git a/meta/lib/oeqa/core/target/__init__.py b/meta/lib/oeqa/core/target/__init__.py
index d2468bc257..1382aa9b52 100644
--- a/meta/lib/oeqa/core/target/__init__.py
+++ b/meta/lib/oeqa/core/target/__init__.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4from abc import abstractmethod 7from abc import abstractmethod
5 8
diff --git a/meta/lib/oeqa/core/target/qemu.py b/meta/lib/oeqa/core/target/qemu.py
index 7a161a3231..081c627b01 100644
--- a/meta/lib/oeqa/core/target/qemu.py
+++ b/meta/lib/oeqa/core/target/qemu.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4import os 7import os
5import sys 8import sys
diff --git a/meta/lib/oeqa/core/target/ssh.py b/meta/lib/oeqa/core/target/ssh.py
index 0c09ddf518..51032ef1a9 100644
--- a/meta/lib/oeqa/core/target/ssh.py
+++ b/meta/lib/oeqa/core/target/ssh.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4import os 7import os
5import time 8import time
diff --git a/meta/lib/oeqa/core/tests/cases/data.py b/meta/lib/oeqa/core/tests/cases/data.py
index 88003a6adc..0d8de87ae7 100644
--- a/meta/lib/oeqa/core/tests/cases/data.py
+++ b/meta/lib/oeqa/core/tests/cases/data.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4from oeqa.core.case import OETestCase 7from oeqa.core.case import OETestCase
5from oeqa.core.decorator.oetag import OETestTag 8from oeqa.core.decorator.oetag import OETestTag
diff --git a/meta/lib/oeqa/core/tests/cases/depends.py b/meta/lib/oeqa/core/tests/cases/depends.py
index 17cdd90b15..46e7db900d 100644
--- a/meta/lib/oeqa/core/tests/cases/depends.py
+++ b/meta/lib/oeqa/core/tests/cases/depends.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4from oeqa.core.case import OETestCase 7from oeqa.core.case import OETestCase
5from oeqa.core.decorator.depends import OETestDepends 8from oeqa.core.decorator.depends import OETestDepends
diff --git a/meta/lib/oeqa/core/tests/cases/loader/valid/another.py b/meta/lib/oeqa/core/tests/cases/loader/valid/another.py
index c9ffd17773..bedc20c8a6 100644
--- a/meta/lib/oeqa/core/tests/cases/loader/valid/another.py
+++ b/meta/lib/oeqa/core/tests/cases/loader/valid/another.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4from oeqa.core.case import OETestCase 7from oeqa.core.case import OETestCase
5 8
diff --git a/meta/lib/oeqa/core/tests/cases/oetag.py b/meta/lib/oeqa/core/tests/cases/oetag.py
index 0cae02e75c..4e1d080985 100644
--- a/meta/lib/oeqa/core/tests/cases/oetag.py
+++ b/meta/lib/oeqa/core/tests/cases/oetag.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4from oeqa.core.case import OETestCase 7from oeqa.core.case import OETestCase
5from oeqa.core.decorator.oetag import OETestTag 8from oeqa.core.decorator.oetag import OETestTag
diff --git a/meta/lib/oeqa/core/tests/cases/timeout.py b/meta/lib/oeqa/core/tests/cases/timeout.py
index 870c3157f7..5dfecc7b7c 100644
--- a/meta/lib/oeqa/core/tests/cases/timeout.py
+++ b/meta/lib/oeqa/core/tests/cases/timeout.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4from time import sleep 7from time import sleep
5 8
diff --git a/meta/lib/oeqa/core/tests/common.py b/meta/lib/oeqa/core/tests/common.py
index 52b18a1c3e..39efd504c0 100644
--- a/meta/lib/oeqa/core/tests/common.py
+++ b/meta/lib/oeqa/core/tests/common.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4import sys 7import sys
5import os 8import os
diff --git a/meta/lib/oeqa/core/tests/test_data.py b/meta/lib/oeqa/core/tests/test_data.py
index 21b6c68b8a..50811bb381 100755
--- a/meta/lib/oeqa/core/tests/test_data.py
+++ b/meta/lib/oeqa/core/tests/test_data.py
@@ -1,7 +1,9 @@
1#!/usr/bin/env python3 1#!/usr/bin/env python3
2 2
3# Copyright (C) 2016 Intel Corporation 3# Copyright (C) 2016 Intel Corporation
4# Released under the MIT license (see COPYING.MIT) 4#
5# SPDX-License-Identifier: MIT
6#
5 7
6import unittest 8import unittest
7import logging 9import logging
diff --git a/meta/lib/oeqa/core/tests/test_decorators.py b/meta/lib/oeqa/core/tests/test_decorators.py
index 67dce773bd..499cd66ff3 100755
--- a/meta/lib/oeqa/core/tests/test_decorators.py
+++ b/meta/lib/oeqa/core/tests/test_decorators.py
@@ -1,7 +1,9 @@
1#!/usr/bin/env python3 1#!/usr/bin/env python3
2 2#
3# Copyright (C) 2016 Intel Corporation 3# Copyright (C) 2016 Intel Corporation
4# Released under the MIT license (see COPYING.MIT) 4#
5# SPDX-License-Identifier: MIT
6#
5 7
6import signal 8import signal
7import unittest 9import unittest
diff --git a/meta/lib/oeqa/core/tests/test_loader.py b/meta/lib/oeqa/core/tests/test_loader.py
index 39f2d6e2a7..519ba96091 100755
--- a/meta/lib/oeqa/core/tests/test_loader.py
+++ b/meta/lib/oeqa/core/tests/test_loader.py
@@ -1,7 +1,9 @@
1#!/usr/bin/env python3 1#!/usr/bin/env python3
2 2#
3# Copyright (C) 2016 Intel Corporation 3# Copyright (C) 2016 Intel Corporation
4# Released under the MIT license (see COPYING.MIT) 4#
5# SPDX-License-Identifier: MIT
6#
5 7
6import os 8import os
7import unittest 9import unittest
diff --git a/meta/lib/oeqa/core/tests/test_runner.py b/meta/lib/oeqa/core/tests/test_runner.py
index a3f3861fed..205464cfae 100755
--- a/meta/lib/oeqa/core/tests/test_runner.py
+++ b/meta/lib/oeqa/core/tests/test_runner.py
@@ -1,7 +1,9 @@
1#!/usr/bin/env python3 1#!/usr/bin/env python3
2 2#
3# Copyright (C) 2016 Intel Corporation 3# Copyright (C) 2016 Intel Corporation
4# Released under the MIT license (see COPYING.MIT) 4#
5# SPDX-License-Identifier: MIT
6#
5 7
6import unittest 8import unittest
7import logging 9import logging
diff --git a/meta/lib/oeqa/core/utils/concurrencytest.py b/meta/lib/oeqa/core/utils/concurrencytest.py
index df8d5d0c8d..6bf7718863 100644
--- a/meta/lib/oeqa/core/utils/concurrencytest.py
+++ b/meta/lib/oeqa/core/utils/concurrencytest.py
@@ -1,5 +1,7 @@
1#!/usr/bin/env python3 1#!/usr/bin/env python3
2# 2#
3# SPDX-License-Identifier: GPL-2.0-or-later
4#
3# Modified for use in OE by Richard Purdie, 2018 5# Modified for use in OE by Richard Purdie, 2018
4# 6#
5# Modified by: Corey Goldberg, 2013 7# Modified by: Corey Goldberg, 2013
diff --git a/meta/lib/oeqa/core/utils/misc.py b/meta/lib/oeqa/core/utils/misc.py
index 0b223b5d08..e1a59588eb 100644
--- a/meta/lib/oeqa/core/utils/misc.py
+++ b/meta/lib/oeqa/core/utils/misc.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4def toList(obj, obj_type, obj_name="Object"): 7def toList(obj, obj_type, obj_name="Object"):
5 if isinstance(obj, obj_type): 8 if isinstance(obj, obj_type):
diff --git a/meta/lib/oeqa/core/utils/path.py b/meta/lib/oeqa/core/utils/path.py
index a21caad5cb..c086dcb0b0 100644
--- a/meta/lib/oeqa/core/utils/path.py
+++ b/meta/lib/oeqa/core/utils/path.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4import os 7import os
5import sys 8import sys
diff --git a/meta/lib/oeqa/core/utils/test.py b/meta/lib/oeqa/core/utils/test.py
index 88d5d13981..d38cab8a51 100644
--- a/meta/lib/oeqa/core/utils/test.py
+++ b/meta/lib/oeqa/core/utils/test.py
@@ -1,5 +1,8 @@
1#
1# Copyright (C) 2016 Intel Corporation 2# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT) 3#
4# SPDX-License-Identifier: MIT
5#
3 6
4import os 7import os
5import inspect 8import inspect