How to avoid the execution of on-run-start and on-run-end hooks with dbt test command

The problem I’m having

The hook statements defined in on-run-start and on-run-end sections are getting executed twice,
first with dbt run and then second time with dbt test.

The context of why I’m trying to do this

How to avoid the execution of on-run-start and on-run-end hooks with dbt test command.