Skip to content

Commit e4b598d

Browse files
committed
TEST: using environmental variable to avoid interactive password input
1 parent da87efb commit e4b598d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tests/units/codecs-test.r3

+4
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,9 @@ foreach str [
742742

743743

744744
if find codecs 'safe [
745+
;- using environmental variable to avoid interactive password input using `ask`
746+
temp: get-env "REBOL_SAFE_PASS"
747+
set-env "REBOL_SAFE_PASS" "my-pass"
745748
===start-group=== "SAFE codec"
746749
--test-- "Save/Load SAFE file"
747750
foreach data [
@@ -754,6 +757,7 @@ if find codecs 'safe [
754757
delete %temp.safe
755758
]
756759
===end-group===
760+
set-env "REBOL_SAFE_PASS" :temp
757761
]
758762

759763

0 commit comments

Comments
 (0)