Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e70f28c4 authored by Usta Shrestha's avatar Usta Shrestha
Browse files

hardening of test for aquery.go

add a depset that only files under ../bazel_tools/dep

Test: aquery_test.go
Bug: N/A
Change-Id: I324cdd8a4c8951465f1dd856916d9b36acf2d0fc
parent 59417a19
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -507,11 +507,14 @@ func TestBazelOutRemovalFromInputDepsets(t *testing.T) {
  "depSetOfFiles": [{
    "id": 1111,
    "directArtifactIds": [3 , 4]
  }, {
    "id": 2222,
    "directArtifactIds": [3]
  }],
  "actions": [{
    "targetId": 100,
    "actionKey": "x",
    "inputDepSetIds": [1111],
    "inputDepSetIds": [1111, 2222],
    "mnemonic": "x",
    "arguments": ["bogus", "command"],
    "outputIds": [2],
@@ -527,7 +530,7 @@ func TestBazelOutRemovalFromInputDepsets(t *testing.T) {
  ]
}`
	actualBuildStatements, actualDepsets, _ := AqueryBuildStatements([]byte(inputString))
	if len(actualDepsets) != 1 {
	if len(actualDepsets) != 2 {
		t.Errorf("expected 1 depset but found %#v", actualDepsets)
		return
	}