]> SALOME platform Git repositories - tools/libbatch.git/commitdiff
Salome HOME
Fixed bug for Slurm (job failed when job name contained spaces) V1_3_0 V1_3_0rc5
authorbarate <barate>
Tue, 17 May 2011 07:58:15 +0000 (07:58 +0000)
committerbarate <barate>
Tue, 17 May 2011 07:58:15 +0000 (07:58 +0000)
src/Slurm/Batch_BatchManager_eSlurm.cxx
src/Slurm/Test/Test_eSlurm.cxx

index f05628ef8426305141a56aa20077143c00cc68b0..e20775bfda15b181d47993e74e022a466131af08 100644 (file)
@@ -144,7 +144,7 @@ namespace Batch {
     tempOutputFile << "#SBATCH --error=" << workDir << "/logs/error.log." << rootNameToExecute << endl;
 
     if (params.find(NAME) != params.end())
-      tempOutputFile << "#SBATCH --job-name=" << params[NAME] << endl;
+      tempOutputFile << "#SBATCH --job-name=\"" << params[NAME] << "\"" << endl;
 
     // Optional parameters
     int nbproc = 1;
index 82abe61df2d2665f924dcc0a35b6dedd44fe029f..1726db70dcea9e9c22bce08fce0bd0d093bfe721 100644 (file)
@@ -90,7 +90,7 @@ int main(int argc, char** argv)
     // ... and its parameters ...
     Parametre p;
     p[EXECUTABLE]    = "./test-script.sh";
-    p[NAME]          = string("Test_eSlurm_") + argv[1];
+    p[NAME]          = string("Test eSLURM ") + argv[1];
     p[WORKDIR]       = homedir + "/tmp/Batch";
     p[INFILE]        = Couple("seta.sh", "tmp/Batch/seta.sh");
     p[INFILE]       += Couple("setb.sh", "tmp/Batch/setb.sh");