Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • gridtk gridtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • software
  • gridtkgridtk
  • Merge requests
  • !16

Resolve "Logs are not kept when a file with the same name as the logs folder name exists"

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Amir MOHAMMADI requested to merge 20-logs-are-not-kept-when-a-file-with-the-same-name-as-the-logs-folder-name-exists into master Dec 05, 2017
  • Overview 3
  • Commits 2
  • Pipelines 3
  • Changes 1

Here is what I did to test this bugfix/feature:

$ touch logs
$ bin/jman submit -- python
Traceback (most recent call last):
  File "bin/jman", line 23, in <module>
    sys.exit(gridtk.script.jman.main())
  File "gridtk/gridtk/script/jman.py", line 383, in main
    args.func(args)
  File "gridtk/gridtk/script/jman.py", line 137, in submit
    job_id = jm.submit(args.job, **kwargs)
  File "gridtk/gridtk/sge.py", line 102, in submit
    job_id = self._submit_to_grid(job, name, array, dependencies, log_dir, verbosity, **kwargs)
  File "gridtk/gridtk/sge.py", line 63, in _submit_to_grid
    assert os.path.isdir(job.log_dir), 'Please make sure --log-dir either does not exist or is a directory.'
AssertionError: Please make sure --log-dir `logs' either does not exist or is a directory.
Edited Dec 07, 2017 by Manuel Günther
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 20-logs-are-not-kept-when-a-file-with-the-same-name-as-the-logs-folder-name-exists