tests: drivers: flash: fix test_storage_partition

It's triggering on things without a flash driver or flash tag...
Disable it based on the presence of a activated flash driver.

Signed-off-by: Camille BAUD <mail@massdriver.space>
diff --git a/tests/drivers/flash/common/testcase.yaml b/tests/drivers/flash/common/testcase.yaml
index 21b2e6b..3025a3d 100644
--- a/tests/drivers/flash/common/testcase.yaml
+++ b/tests/drivers/flash/common/testcase.yaml
@@ -169,7 +169,8 @@
       - nrf52840dk/nrf52840
       - nrf5340dk/nrf5340/cpuapp
   drivers.flash.common.test_storage_partition:
-    filter: dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")
+    filter: CONFIG_FLASH_HAS_DRIVER_ENABLED
+      and dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")
     platform_exclude:
       - beagleconnect_freedom/cc1352p7
     extra_args: