Details

    • Type: Subtask
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Build & CI
    • Labels:
      None
    • Sprint:
      Marathon Sprint 1.11-7, Marathon Sprint 1.11-8
    • Customer Issue Status:
      fixed and new version of shakedown released

      Description

      title = 'tests/system/test_marathon_root.py setup', state = 'skip'
      text = "http.py                    134 INFO     Sending HTTP ['get'] to ['http://34.216.183.88//exhibitor/exhibitor/v1/explor...': 'chunked', 'Connection': 'keep-alive'}\nutil.py                    565 DEBUG    duration: dcos.http._request: 0.02s"
      status = False
      
          def output(title, state, text, status=True):
              """ Capture and display stdout/stderr output
          
                          :param title: the title of the output box (eg. test name)
                          :type title: str
                          :param state: state of the result (pass, fail)
                          :type state: str
                          :param text: the stdout/stderr output
                          :type text: str
                          :param status: whether to output a status marker
                          :type status: bool
                      """
              if state == 'fail':
                  schr = fchr('FF')
              elif state == 'pass':
                  schr = fchr('PP')
          
              if status:
                  if not args['stdout_inline']:
                      if state == 'fail':
                          echo(schr, d='fail')
                      elif state == 'pass':
                          echo(schr, d='pass')
                  else:
                      if not text:
                          if state == 'fail':
                              echo(schr, d='fail')
                          elif state == 'pass':
                              if '::' in title:
                                  echo(title.split('::')[-1], d='item-min', n=False)
                              echo(schr, d='pass')
          
              if text and args['stdout'] in [state, 'all']:
      >           o = decorate(schr + ': ', 'quote-head-' + state)
      E           UnboundLocalError: local variable 'schr' referenced before assignment
      
      /usr/lib/python3.6/site-packages/shakedown/cli/main.py:201: UnboundLocalError
      

        Attachments

          Activity

            People

            • Assignee:
              alenavarkockova Alena Varkockova
              Reporter:
              alenavarkockova Alena Varkockova
              Team:
              Orchestration Team
              Watchers:
              Alena Varkockova
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: