Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2304

"./04_examples/outputs/check_outputs.cf" tests are not running

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Test suite
    • Labels:
      None
    • Platform:
      N/A

      Description

      <pre>
      vars:
      "basedir" string => "../../examples";
      "checker" string => "$(basedir)/remake_outputs.pl";
      "all_examples" slist => findfiles("$(basedir)/*.cf");
      </pre>

      @findfiles()@ in this policy is returning empty list, but only during main evaluation, in pre-evaluation it correctly contains the full list of files. Output from debug, it's the same for all 3 passes:

      <pre>
      verbose: B: *****************************************************************
      verbose: B: BEGIN bundle init
      verbose: B: *****************************************************************
      debug: Resolving variables in bundle 'agent' 'init'
      debug: Looking at arg for function-like object 'findfiles'
      debug: Evaluating function: findfiles("$(basedir)/*.cf")
      verbose: V: .........................................................
      verbose: V: BEGIN variables (pass 1)
      verbose: V: .........................................................
      verbose: V: Computing value of "basedir"
      verbose: V: Computing value of "checker"
      debug: Looking at arg for function-like object 'findfiles'
      debug: Evaluating function: findfiles("$(basedir)/*.cf")
      verbose: V: Computing value of "all_examples"
      debug: Skipping empty list 'all_examples' in iteration
      </pre>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                a10038 jimis (Dimitrios Apostolou)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 day, 5 hours
                    1d 5h
                    Remaining:
                    Not Specified
                    Logged:
                    Time Not Required
                    Not Specified