Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] chip-tool compilation fails because of response variable #28096

Closed
ericzijian1994 opened this issue Jul 20, 2023 · 1 comment · Fixed by #28108
Closed

[BUG] chip-tool compilation fails because of response variable #28096

ericzijian1994 opened this issue Jul 20, 2023 · 1 comment · Fixed by #28108
Labels
bug Something isn't working needs triage

Comments

@ericzijian1994
Copy link
Contributor

Reproduction steps

In YAML, I used the saveAs variable in the response to the readEvent as follows:

    - label:
          "TH waits for a report of InterconnectSmokeAlarm attribute from DUT"
      command: "waitForReport"
      attribute: "InterconnectSmokeAlarm"
      response:
          saveAs: tempAlarm

    - label: "TH reads InterconnectSmokeAlarm event from DUT"
      command: "readEvent"
      event: "InterconnectSmokeAlarm"
      response:
          value: { AlarmSeverityLevel: tempAlarm }

Then I compile chip-tool:
./scripts/tools/zap_regen_all.py --type tests
scripts/examples/gn_build_example.sh examples/chip-tool out/chip-tool

Finally I get this error:
ninja_log.txt

Bug prevalence

Always

GitHub hash of the SDK that was being used

78c62b0

Platform

other

Platform Version(s)

No response

Anything else?

No response

@bzbarsky-apple
Copy link
Contributor

Simpler testcase:

    - label: "Read"
      cluster: "Smoke CO Alarm"
      command: "readAttribute"
      attribute: "InterconnectSmokeAlarm"
      response:
          saveAs: tempAlarm

    - label: "Verify"
      cluster: "Smoke CO Alarm"
      command: "readAttribute"
      attribute: "InterconnectSmokeAlarm"
      response:
          value: tempAlarm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants