lib/strings/toShellVars: handle derivations as strings
This commit is contained in:
@@ -269,6 +269,15 @@ runTests {
|
||||
strings
|
||||
possibly newlines
|
||||
'';
|
||||
drv = {
|
||||
outPath = "/drv";
|
||||
foo = "ignored attribute";
|
||||
};
|
||||
path = /path;
|
||||
stringable = {
|
||||
__toString = _: "hello toString";
|
||||
bar = "ignored attribute";
|
||||
};
|
||||
}}
|
||||
'';
|
||||
expected = ''
|
||||
@@ -277,6 +286,9 @@ runTests {
|
||||
declare -A assoc=(['with some']='strings
|
||||
possibly newlines
|
||||
')
|
||||
drv='/drv'
|
||||
path='/path'
|
||||
stringable='hello toString'
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user