~ubuntu-branches/ubuntu/precise/slurm-llnl/precise

« back to all changes in this revision

Viewing changes to testsuite/expect/test7.3.prog.c

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2011-04-08 11:21:17 UTC
  • mfrom: (3.3.16 sid)
  • Revision ID: james.westby@ubuntu.com-20110408112117-nfnyq9dtm55hqoaw
Tags: 2.2.4-1
* New upstream releases 
* Cleaning spare file and directories, not belonging to the sources
  generated by the building process and not removed by distclean.
  Added debian/clean with spare files and rm -rf inside debian/rules
  for directories.
* Added new packages libslurm-perl, libslurmdb-perl, slurm-llnl-torque
  (Closes: #575822) thanks to Julien Blache

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        job_req.time_limit = 1;
77
77
        if (slurm_allocate_resources(&job_req, &job_resp)) {
78
78
                slurm_perror ("slurm_allocate_resources");
 
79
                printf("INFO: min_nodes=%u max_nodes=%u user_id=%u group_id=%u",
 
80
                       job_req.min_nodes, job_req.max_nodes,
 
81
                       job_req.user_id, job_req.group_id);
79
82
                exit(0);
80
83
        }
81
84
        printf("job_id %u\n", job_resp->job_id);
114
117
         */
115
118
        slurm_step_ctx_params_t_init(step_params);
116
119
        step_params->job_id = job_resp->job_id;
117
 
        step_params->node_count = nodes;
 
120
        step_params->min_nodes = nodes;
118
121
        step_params->task_count = tasks;
119
122
 
120
123
        ctx = slurm_step_ctx_create(step_params);
 
124
        if ((ctx == NULL) &&
 
125
            (slurm_get_errno() == ESLURM_PROLOG_RUNNING)) {
 
126
                printf("SlurmctldProlog is still running, "
 
127
                       "sleep and try again\n");
 
128
                sleep(10);
 
129
                ctx = slurm_step_ctx_create(step_params);
 
130
        }
121
131
        if (ctx == NULL) {
122
132
                slurm_perror("slurm_step_ctx_create");
123
133
                rc = 1;