Fix --resource-type test
for dbt list
and dbt build
#10730
Merged
--resource-type test
for dbt list
and dbt build
#10730