Pcornel
Browse topics
Options
Recent
Favorites
Command · Python / pytest

Run the smoke-test subset

pytest -q -m smoke

Operational command for Run the smoke-test subset. Focus fields: collected tests, passed/failed/skipped counts and first failure trace.

Execution context

Python / pytest

Use when

Use when working the canonical Topic automation--testing-smoke-testing and the matching failure boundary.

Then verify

inspect the first failing test and its fixture/dependency before broadening the suite

Privilege Use an account/context authorized for this observation; do not broaden scope unnecessarily.State impact Low impactProduction Unknown

Operational impact: Low-impact diagnostic/test action; understand platform effects before production use.
Command detailsSafety model · family · platform · verification · bundle
PrivilegeUse an account/context authorized for this observation; do not broaden scope unnecessarily.
Execution contextPython / pytest
State impactLow impact
Safe during productionUnknown
Categorytesting
Evidence levelmixed
Primary DomainAutomation
Technically verifiedNeeds verification date
FamilyTesting
PlatformPython / pytest
PrerequisitePython / pytest
Output fields

Field glossary

Important fields projected from persisted Command guidance.

collected tests, passed/failed/skipped counts and first failure trace

Important persisted output field; use surrounding guidance for interpretation.

Command → Topic semantics

Used in these Topics

Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.

DomainsAutomation

Find another Command

Reference enrichment

Evidence boundary

What this output can establish — and where you must not over-claim.

Proves

This command directly exposes collected tests, passed/failed/skipped counts and first failure trace for the selected object/context at execution time.

Does not prove

It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.

Next check

inspect the first failing test and its fixture/dependency before broadening the suite

Depth when you need it

Command guidance

Execution context

Python / pytest

Use when

Use when working the canonical Topic automation--testing-smoke-testing and the matching failure boundary.

Important fields

collected tests, passed/failed/skipped counts and first failure trace

Common problems

Common mistakes: wrong object, node, VRF/namespace, time window, or treating a management-plane status as workload proof.

Operational impact

Low-impact diagnostic/test action; understand platform effects before production use.

Runtime cautions

Capture the command, selected scope and timestamp so the result can be correlated with the original test.

Technical context

Known-good: the intended smoke set is collected and all critical tests pass. Suspicious: collection differs from expectation or one or more smoke tests fail. Next discriminating check: inspect the first failing test and its fixture/dependency before broadening the suite.

Command Output Deep Dive

Variants · known-good and broken output

Read the stored sample against its authored expected state and interpretation, then return to the Command evidence boundary for what the observation can and cannot prove.

Known-good · 1Broken · 1Transitional · 1Observed · 0
1 · Observe the exact persisted fields/state.2 · Compare with authored known-good, broken or transitional samples.3 · Apply the Command evidence boundary; output is not end-to-end proof.4 · Run the next discriminating check and repeat the original workload/test when relevant.
Illustrative Known-good interpretationKnown-good · Python / pytest
Illustrative state cue only; not captured output: the intended smoke set is collected and all critical tests pass
Expected state

healthy

Interpretation

Run the smoke-test subset — Known-good. Inspect collected tests, passed/failed/skipped counts and first failure trace. Observed cue: the intended smoke set is collected and all critical tests pass. This supports only the state returned by pytest -q -m smoke for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: inspect the first failing test and its fixture/dependency before broadening the suite. Correlate the result with the same workload/test before declaring recovery.

Evidence boundary

This command directly exposes collected tests, passed/failed/skipped counts and first failure trace for the selected object/context at execution time.

Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.
Next check

inspect the first failing test and its fixture/dependency before broadening the suite

Illustrative Transitional interpretationTransitional · Python / pytest
Illustrative state cue only; not captured output: The command returns the expected object, but one or more state/counter fields are still moving toward a terminal result.
Expected state

transitional

Interpretation

Run the smoke-test subset — Transitional. Inspect collected tests, passed/failed/skipped counts and first failure trace. Observed cue: The command returns the expected object, but one or more state/counter fields are still moving toward a terminal result.. This supports only the state returned by pytest -q -m smoke for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: inspect the first failing test and its fixture/dependency before broadening the suite. Correlate the result with the same workload/test before declaring recovery.

Evidence boundary

This command directly exposes collected tests, passed/failed/skipped counts and first failure trace for the selected object/context at execution time.

Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.
Next check

inspect the first failing test and its fixture/dependency before broadening the suite

Illustrative Broken interpretationBroken · Python / pytest
Illustrative state cue only; not captured output: collection differs from expectation or one or more smoke tests fail
Expected state

broken

Interpretation

Run the smoke-test subset — Broken. Inspect collected tests, passed/failed/skipped counts and first failure trace. Observed cue: collection differs from expectation or one or more smoke tests fail. This supports only the state returned by pytest -q -m smoke for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: inspect the first failing test and its fixture/dependency before broadening the suite. Correlate the result with the same workload/test before declaring recovery.

Evidence boundary

This command directly exposes collected tests, passed/failed/skipped counts and first failure trace for the selected object/context at execution time.

Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.
Next check

inspect the first failing test and its fixture/dependency before broadening the suite

Confirmation

Confirm action

Continue?