041941a148d89b2bb2cdfab7e6372022903cf11c,reframe/core/schedulers/slurm.py,SlurmJob,_get_nodes_by_name,#SlurmJob#Any#,242

Before Change


                           "of nodes: %s" % nodespec) from e

        node_descriptions = completed.stdout.splitlines()
        return {SlurmNode(descr) for descr in node_descriptions}

    def _set_nodelist(self, nodespec):
        if self._nodelist is not None:
            return

After Change


    def _get_nodes_by_name(self, nodespec):
        completed = _run_command("scontrol -a show -o node %s" % nodespec)
        node_descriptions = completed.stdout.splitlines()
        nodes_avail = set()
        for descr in node_descriptions:
            try:
                nodes_avail.add(SlurmNode(descr))
            except JobError:
                pass

        return nodes_avail
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: eth-cscs/reframe
Commit Name: 041941a148d89b2bb2cdfab7e6372022903cf11c
Time: 2019-03-12
Author: kraushaar@cscs.ch
File Name: reframe/core/schedulers/slurm.py
Class Name: SlurmJob
Method Name: _get_nodes_by_name


Project Name: pantsbuild/pants
Commit Name: 320b4c7f27d3ff244c766c3fb8481ed01d57d228
Time: 2016-05-15
Author: benjyw@gmail.com
File Name: src/python/pants/option/options.py
Class Name: Options
Method Name: complete_scopes


Project Name: eth-cscs/reframe
Commit Name: c323ba31063d782f2beaa4fb66a4943c19018936
Time: 2019-11-20
Author: manitaras@cscs.ch
File Name: reframe/core/schedulers/slurm.py
Class Name: SlurmJob
Method Name: get_all_nodes