mirror of
https://github.com/luxfi/aml.git
synced 2026-09-24 00:25:20 +00:00
tools: resolve the module root from the harness, not from its own directory
The harness derived the module root from its own location, so moving it into tools/ pointed every path at tools/pkg/... and it failed on the first mutation. A mutation harness that cannot run is worse than none: its output is the evidence that a test can fail for the right reason, and an unrunnable one leaves that claim resting on when it last ran. 30/30 killed from the new location. Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
+2
-1
@@ -6,7 +6,8 @@ Reports per mutation: ANCHOR MISS (not applied -> not a kill), COMPILE FAIL
|
||||
"""
|
||||
import subprocess, sys, os, shutil
|
||||
|
||||
ROOT = os.path.dirname(os.path.abspath(__file__))
|
||||
# The module root, one level above this script, so the harness runs from anywhere.
|
||||
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
ENV = dict(os.environ, TMPDIR="/tmp", GOWORK="off",
|
||||
PATH="/usr/local/go/bin:" + os.environ["PATH"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user