Commit 7a3b70bb authored by Carlo Baffa's avatar Carlo Baffa
Browse files

Deleted the inherited and unnecessary Makefile. Some comments.

parent 00bf1222
Loading
Loading
Loading
Loading

Makefile

deleted100644 → 0
+0 −27
Original line number Diff line number Diff line
# Use bash shell with pipefail option enabled so that the return status of a
# piped command is the value of the last (rightmost) commnand to exit with a
# non-zero status. This lets us pipe output into tee but still exit on test
# failures.
SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c

all: test lint

# The following steps copy across useful output to this volume which can
# then be extracted to form the CI summary for the test procedure.
test:

	 python setup.py test | tee ./build/setup_py_test.stdout; \
	 mv coverage.xml ./build/reports/code-coverage.xml;

# The following steps copy across useful output to this volume which can
# then be extracted to form the CI summary for the test procedure.
lint:

	# FIXME pylint needs to run twice since there is no way go gather the text and junit xml output at the same time
	pip3 install pylint2junit; \
	pylint --output-format=parseable ska_python_skeleton | tee ./build/code_analysis.stdout; \
	pylint --output-format=pylint2junit.JunitReporter ska_python_skeleton > ./build/reports/linting.xml;


.PHONY: all test lint
+1 −1
Original line number Diff line number Diff line
# -*- coding: utf-8 -*-
#
# This file is part of the CentralNode project
# This file is part of the CspSubElementMaster project
#
#
#
+7 −1
Original line number Diff line number Diff line
@@ -241,7 +241,6 @@ class CspSubElementMaster(SKAMaster):
        SKAMaster.init_device(self)
        self.set_state(tango.DevState.INIT)
        # PROTECTED REGION ID(CspSubElementMaster.init_device) ENABLED START #
        # PROTECTED REGION ID(CspSubElementMaster.init_device) ENABLED START #
        # _cmd_execution_state: implement the execution state of a long-running
        # command for the whole CSP.  Setting this attribute prevent the execution
        # of the same command while it is already running.
@@ -512,6 +511,9 @@ class CspSubElementMaster(SKAMaster):
            The command is executed if the *AdminMode* is ONLINE or *MAINTENANCE*.
            If the AdminMode is *OFFLINE*, *NOT-FITTED* or *RESERVED*, the method throws an 
            exception.
            The CSP sub-element components can be organized as tango-groups or controlled
            by some tango device drivers which actas as 'cache'. We call these devices 
            'racks', even if they can contro a different phisical arrangement.

        :param argin: 'DevVarStringArray'
            The list of sub-element components FQDNs to switch-on or an empty list to switch-on the whole 
@@ -542,6 +544,10 @@ class CspSubElementMaster(SKAMaster):
            Switch-off the CSP sub-element components specified by the input argument. 
            If no argument is specified, the command is issued to all the CSP 
            sub-element components.
            The CSP sub-element components can be organized as tango-groups or controlled
            by some tango device drivers which actas as 'cache'. We call these devices 
            'racks', even if they can contro a different phisical arrangement.


        :param argin: 'DevVarStringArray'
            If the array length is 0, the command applies to the whole