~ubuntu-branches/ubuntu/trusty/nordugrid-arc/trusty

« back to all changes in this revision

Viewing changes to src/clients/compute/arctest.cpp

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2013-11-29 13:39:10 UTC
  • mfrom: (3.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20131129133910-sy6ayoavphc5hozs
Tags: 4.0.0-1
4.0.0 Release (Closes: #715131) (LP: #1049798)

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
    retval = 1;
286
286
  }
287
287
 
288
 
  Arc::JobInformationStorageXML jobList(usercfg.JobListFile());
289
 
  if (!jobList.Write(submittedJobs)) {
290
 
    std::cout << Arc::IString("Warning: Failed to lock job list file %s", usercfg.JobListFile())
 
288
  Arc::JobInformationStorage *jobstore = createJobInformationStorage(usercfg);
 
289
  if (jobstore == NULL) {
 
290
    logger.msg(Arc::ERROR, "Unable to read job information from file (%s)", usercfg.JobListFile());
 
291
    return 1;
 
292
  }
 
293
  if (!jobstore->Write(submittedJobs)) {
 
294
    std::cout << Arc::IString("Warning: Failed to write job information to file (%s)", usercfg.JobListFile())
291
295
              << std::endl;
292
296
    std::cout << Arc::IString("To recover missing jobs, run arcsync") << std::endl;
293
297
  }
 
298
  delete jobstore;
294
299
 
295
300
  return retval;
296
301
}