H-20: a tools bundle's words hold its module's want fingerprint
Builds: design 47 G §519, §618
This commit is contained in:
@@ -388,8 +388,8 @@ func ToolsRunning(running []engcomp.Composed) map[string][]catalogue.Bundle {
|
||||
}
|
||||
var own map[string]string
|
||||
for w, v := range words[module] {
|
||||
if w == catalogue.FilesOwnedPaths || w == catalogue.ReadsSecretPlaces {
|
||||
continue // the mesh's to say, composed again
|
||||
if w == catalogue.FilesOwnedPaths || w == catalogue.ReadsSecretPlaces || w == engcomp.FingerprintVar {
|
||||
continue // the mesh's to say, composed again (the fingerprint is the want's, §519)
|
||||
}
|
||||
if own == nil {
|
||||
own = map[string]string{}
|
||||
|
||||
@@ -180,7 +180,12 @@ func TestCompositionsAreTheDeclarationSplitByModule(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if env[catalogue.RuntimeToolModules] != served || env[catalogue.RuntimeToolEnv] != `{"lamp":{"LAMP_CONF":"/var/lib/lamp/conf"}}` {
|
||||
// §519: the words each bundle's module is given hold the fingerprint of the want it applies, where there is one.
|
||||
words := `{"lamp":{"LAMP_CONF":"/var/lib/lamp/conf"}}`
|
||||
if fp := row.fps["lamp"]; fp != "" {
|
||||
words = `{"lamp":{"LAMP_CONF":"/var/lib/lamp/conf","MESH_FINGERPRINT":"` + fp + `"}}`
|
||||
}
|
||||
if env[catalogue.RuntimeToolModules] != served || env[catalogue.RuntimeToolEnv] != words {
|
||||
t.Errorf("%s: the runtime serves %v with %v, want what runs of lamp, %s", row.name,
|
||||
env[catalogue.RuntimeToolModules], env[catalogue.RuntimeToolEnv], served)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user