From 6cc8067ba824df537dfd0597473d578b55e65639 Mon Sep 17 00:00:00 2001 From: Vineela Kukkadapu Date: Thu, 25 Oct 2018 14:54:15 -0700 Subject: [PATCH] Add copyright header for all tests Summary: in title Test Plan: do it live Reviewed By: tomrepo fbshipit-source-id: 95d439f6f --- tests/common/BaseUtil.py | 20 ++++++++++++++++++ tests/common/bmcUtiltest.py | 20 ++++++++++++++++++ tests/common/cmmComponentPresenceTest.py | 20 ++++++++++++++++++ tests/common/cmmPowerGPIOPresence.py | 20 ++++++++++++++++++ tests/common/connectionTest.py | 20 ++++++++++++++++++ tests/common/eepromTest.py | 20 ++++++++++++++++++ tests/common/fansTest.py | 20 ++++++++++++++++++ tests/common/gpioTest.py | 20 ++++++++++++++++++ tests/common/hostMacTest.py | 20 ++++++++++++++++++ tests/common/i2cSensorTest.py | 20 ++++++++++++++++++ tests/common/interfaceTest.py | 20 ++++++++++++++++++ tests/common/kernelModulesTest.py | 20 ++++++++++++++++++ tests/common/memoryUsageTest.py | 20 ++++++++++++++++++ tests/common/powerCycleHWTest.py | 20 ++++++++++++++++++ tests/common/powerCycleSWTest.py | 20 ++++++++++++++++++ tests/common/processRunningTest.py | 20 ++++++++++++++++++ tests/common/restapiTest.py | 20 ++++++++++++++++++ tests/common/sensorTest.py | 20 ++++++++++++++++++ tests/common/solTest.py | 20 ++++++++++++++++++ tests/common/unitTestUtil.py | 20 ++++++++++++++++++ tests/common/watchdogResetTest.py | 19 +++++++++++++++++ tests/experimental/generate_gpiolist.py | 20 ++++++++++++++++++ tests/fbtp/unittests/FbtpUtil.py | 20 ++++++++++++++++++ tests/fbttn/unittests/FbttnUtil.py | 20 ++++++++++++++++++ tests/galaxy100/unittests/Galaxy100Util.py | 20 ++++++++++++++++++ tests/minipack/unittests/MinipackUtil.py | 20 ++++++++++++++++++ tests/minipack/unittests/fscd_test.py | 24 +++++++++++++++++++--- tests/wedge/unittests/WedgeUtil.py | 20 ++++++++++++++++++ tests/wedge100/unittests/Wedge100Util.py | 20 ++++++++++++++++++ tests/wedge100/unittests/fscd_test.py | 20 +++++++++++++++++- tests/wedge100/unittests/psumuxmon_test.py | 20 ++++++++++++++++++ 31 files changed, 619 insertions(+), 4 deletions(-) diff --git a/tests/common/BaseUtil.py b/tests/common/BaseUtil.py index 4a85233ace4..eee3a18948b 100644 --- a/tests/common/BaseUtil.py +++ b/tests/common/BaseUtil.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/bmcUtiltest.py b/tests/common/bmcUtiltest.py index 753544b0893..c9985485a4c 100644 --- a/tests/common/bmcUtiltest.py +++ b/tests/common/bmcUtiltest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/cmmComponentPresenceTest.py b/tests/common/cmmComponentPresenceTest.py index 12290bcad72..619f96e4c75 100644 --- a/tests/common/cmmComponentPresenceTest.py +++ b/tests/common/cmmComponentPresenceTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/cmmPowerGPIOPresence.py b/tests/common/cmmPowerGPIOPresence.py index 8f5589ccba2..b9ea99d3a3c 100644 --- a/tests/common/cmmPowerGPIOPresence.py +++ b/tests/common/cmmPowerGPIOPresence.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/connectionTest.py b/tests/common/connectionTest.py index ae0dd2679db..1572c0d6585 100644 --- a/tests/common/connectionTest.py +++ b/tests/common/connectionTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/eepromTest.py b/tests/common/eepromTest.py index a52bd6b79a2..c5bf2ee345a 100644 --- a/tests/common/eepromTest.py +++ b/tests/common/eepromTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/fansTest.py b/tests/common/fansTest.py index 7068eaa122d..ca8e16d2c70 100644 --- a/tests/common/fansTest.py +++ b/tests/common/fansTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/gpioTest.py b/tests/common/gpioTest.py index e4b135d64d3..6365f6fd1f6 100644 --- a/tests/common/gpioTest.py +++ b/tests/common/gpioTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/hostMacTest.py b/tests/common/hostMacTest.py index 365f5b40c92..8d8cbab52b6 100644 --- a/tests/common/hostMacTest.py +++ b/tests/common/hostMacTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/i2cSensorTest.py b/tests/common/i2cSensorTest.py index 77d0c906fe9..abdd72a9e4c 100644 --- a/tests/common/i2cSensorTest.py +++ b/tests/common/i2cSensorTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/interfaceTest.py b/tests/common/interfaceTest.py index 057fe28c043..65ecc2aa886 100644 --- a/tests/common/interfaceTest.py +++ b/tests/common/interfaceTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/kernelModulesTest.py b/tests/common/kernelModulesTest.py index 82ef61ee59b..106b020b7dc 100644 --- a/tests/common/kernelModulesTest.py +++ b/tests/common/kernelModulesTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/memoryUsageTest.py b/tests/common/memoryUsageTest.py index aad43537250..b5a5c0b7272 100644 --- a/tests/common/memoryUsageTest.py +++ b/tests/common/memoryUsageTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/powerCycleHWTest.py b/tests/common/powerCycleHWTest.py index 7e350f25e02..42b20fbf1a3 100644 --- a/tests/common/powerCycleHWTest.py +++ b/tests/common/powerCycleHWTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/powerCycleSWTest.py b/tests/common/powerCycleSWTest.py index 7b486f79a5d..80423c16ed3 100644 --- a/tests/common/powerCycleSWTest.py +++ b/tests/common/powerCycleSWTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/processRunningTest.py b/tests/common/processRunningTest.py index 55df090e616..07cd73b8c11 100644 --- a/tests/common/processRunningTest.py +++ b/tests/common/processRunningTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/restapiTest.py b/tests/common/restapiTest.py index 06b93965bd4..95ff1b05111 100644 --- a/tests/common/restapiTest.py +++ b/tests/common/restapiTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/sensorTest.py b/tests/common/sensorTest.py index dead3ec56bc..9056c32d952 100644 --- a/tests/common/sensorTest.py +++ b/tests/common/sensorTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/solTest.py b/tests/common/solTest.py index cc6346123d4..0376aa114fd 100644 --- a/tests/common/solTest.py +++ b/tests/common/solTest.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/unitTestUtil.py b/tests/common/unitTestUtil.py index 5eb68d06600..0712fbbfe50 100644 --- a/tests/common/unitTestUtil.py +++ b/tests/common/unitTestUtil.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/common/watchdogResetTest.py b/tests/common/watchdogResetTest.py index faa437f9846..ca6b2ad8d7b 100644 --- a/tests/common/watchdogResetTest.py +++ b/tests/common/watchdogResetTest.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# from __future__ import absolute_import from __future__ import division diff --git a/tests/experimental/generate_gpiolist.py b/tests/experimental/generate_gpiolist.py index 4b51be43124..302649e66a7 100644 --- a/tests/experimental/generate_gpiolist.py +++ b/tests/experimental/generate_gpiolist.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/fbtp/unittests/FbtpUtil.py b/tests/fbtp/unittests/FbtpUtil.py index fbd7ae405b7..1956e5a1e74 100644 --- a/tests/fbtp/unittests/FbtpUtil.py +++ b/tests/fbtp/unittests/FbtpUtil.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/fbttn/unittests/FbttnUtil.py b/tests/fbttn/unittests/FbttnUtil.py index 6905bb48961..03c4ac2a517 100644 --- a/tests/fbttn/unittests/FbttnUtil.py +++ b/tests/fbttn/unittests/FbttnUtil.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/galaxy100/unittests/Galaxy100Util.py b/tests/galaxy100/unittests/Galaxy100Util.py index 28d533990f3..e330c5fc565 100644 --- a/tests/galaxy100/unittests/Galaxy100Util.py +++ b/tests/galaxy100/unittests/Galaxy100Util.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/minipack/unittests/MinipackUtil.py b/tests/minipack/unittests/MinipackUtil.py index 22a724cb47f..508f83dc22c 100644 --- a/tests/minipack/unittests/MinipackUtil.py +++ b/tests/minipack/unittests/MinipackUtil.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/minipack/unittests/fscd_test.py b/tests/minipack/unittests/fscd_test.py index 3aad8cfcad2..d537f6ba3fc 100644 --- a/tests/minipack/unittests/fscd_test.py +++ b/tests/minipack/unittests/fscd_test.py @@ -1,4 +1,22 @@ -# Copyright (C) 2004-present Facebook. All Rights Reserved +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# from __future__ import absolute_import from __future__ import division @@ -271,7 +289,7 @@ def run_test1(self): switch2_temp=20, expected_pwm=50): rc = False - + print("[FSCD Testing] System should shutdown because temperature " "limit reached. Verifying...") time.sleep(70) @@ -316,7 +334,7 @@ def run_test2(self): ''' test2: fan dead test - Setup: fsc-32/64-config-test2.json - reads sensors temperature from + Setup: fsc-32/64-config-test2.json - reads sensors temperature from sensor-util but reads RPMs and PWMs from test-data. 1) fan_dead_boost test for one or more fans are broken ''' diff --git a/tests/wedge/unittests/WedgeUtil.py b/tests/wedge/unittests/WedgeUtil.py index 96e0d48d49b..ff07d5e3214 100644 --- a/tests/wedge/unittests/WedgeUtil.py +++ b/tests/wedge/unittests/WedgeUtil.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/wedge100/unittests/Wedge100Util.py b/tests/wedge100/unittests/Wedge100Util.py index d7d16a3479d..5a6f6063ce2 100644 --- a/tests/wedge100/unittests/Wedge100Util.py +++ b/tests/wedge100/unittests/Wedge100Util.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/tests/wedge100/unittests/fscd_test.py b/tests/wedge100/unittests/fscd_test.py index d19727e9255..802ead1209c 100644 --- a/tests/wedge100/unittests/fscd_test.py +++ b/tests/wedge100/unittests/fscd_test.py @@ -1,4 +1,22 @@ -# Copyright (C) 2004-present Facebook. All Rights Reserved +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# from __future__ import absolute_import from __future__ import division diff --git a/tests/wedge100/unittests/psumuxmon_test.py b/tests/wedge100/unittests/psumuxmon_test.py index fe2ada04fb2..19a3d296f77 100644 --- a/tests/wedge100/unittests/psumuxmon_test.py +++ b/tests/wedge100/unittests/psumuxmon_test.py @@ -1,3 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2018-present Facebook. All Rights Reserved. +# +# This program file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in a file named COPYING; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# + from __future__ import absolute_import from __future__ import division from __future__ import print_function