PP-519: Modify skipOnCray decorator in PTL to skip test on Cray, Cray ALPS simulator and Cray build

PP-519: Modify skipOnCray decorator in PTL to skip test on Cray, Cray ALPS simulator and Cray build

Target Release

17.2.1

JIRA

https://openpbs.atlassian.net/browse/PP-519

Document status

Initial version

Document owner

@Sanket Borle (Deactivated)

Designer

@Sanket Borle (Deactivated)

Developers

@Sanket Borle (Deactivated)

QA

@Kumar Jakkali (Deactivated)

Forum Discussion

http://community.pbspro.org/t/pp-519-modify-skiponcray-decorator-in-ptl-to-skip-test-on-cray-cray-alps-simulator-and-cray-build/624

 

Interface: skipOnCray():
Visibility: Public
Change Control: Stable
Synopsis: Modifications to add a skip for actual Cray cluster, Cray ALPS simulator and Cray build.
Standing of the interface : modified interface
Details: This single interface which will provide a way to skip test case on Cray build, actual Cray cluster and Cray ALPS simulator.

  • Specify at least one of the three cray/craysim/craybuild strings as a parameter to decorator function. If more than one parameters are there then specify all of them as a comma separated values inside a single quotes. example: ('cray,craysim')

    • If 'craybuild' is specified then skip the test on Cray build.

    • If 'cray' is specified then skip the test on actual Cray cluster.

    • If 'craysim' is specified then skip the test on Cray ALPS simulator.

    • If more than one comma separated parameters are specified then apply skip for all those scenarios. 

    • Throw an error if no parameter is specified.

    • Throw an error if invalid parameter is passed.

    • Examples:

      • Skip on actual Cray cluster:
        @skipOnCray(‘cray’)

      • Skip on both actual Cray and simulator:
        @skipOnCray(‘cray,craysim’)

      • Skip on all actual Cray, Cray ALPS simulator and Cray build:
        @skipOnCray(‘cray,craysim,craybuild’)