Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-32134

Refactor "run tests" disable_unit_tests condition in evergreen.yml

      The disable_unit_tests conditional test in "run tests" is hard to follow as there is no indentation and the entire function is ignored if it's set to true.

      Suggest changing the code block:

              if [ ${disable_unit_tests|false} = "false" ]; then
      
              # activate the virtualenv if it has been set up
              ${activate_virtualenv}
      
              if [ -f /proc/self/coredump_filter ]; then
                # Set the shell process (and its children processes) to dump ELF headers (bit 4),
      ...
              fi # end if ${disable_unit_tests}
      

      Should be refactored to

              if [ ${disable_unit_tests|false} = "true" ]; then
                exit 0
              fi
      
              # activate the virtualenv if it has been set up
              ${activate_virtualenv}
      
              if [ -f /proc/self/coredump_filter ]; then
      ...
      

            Assignee:
            backlog-server-tig DO NOT USE - Backlog - Test Infrastructure Group (TIG)
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: