Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12091

Invalid syntax in num_jobs for - name: ubuntu2004-release-nonstandalone

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Not Needed

      Change:

      num_jobs: $(echo "`grep -c ^processor /proc/cpuinfo / 2`" | bc)

      to:

      num_jobs: $(echo "`grep -c ^processor /proc/cpuinfo` / 2" | bc)

       

      Below is an example of running the original showing the error and correction:

      $ echo "`grep -c ^processor /proc/cpuinfo / 2`" | bc
      grep: /: Is a directory
      grep: 2: No such file or directory
      (standard_in) 1: syntax error
      (standard_in) 1: illegal character: :
      (standard_in) 1: syntax error
      (standard_in) 2: illegal character: :

      $ echo "`grep -c ^processor /proc/cpuinfo` / 2" | bc
      4

       

            Assignee:
            tod.johnson@mongodb.com Tod Johnson (Inactive)
            Reporter:
            tod.johnson@mongodb.com Tod Johnson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: