Skip to content

Commit

Permalink
export environment vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcmicu committed Oct 4, 2024
1 parent 93884df commit 9b2e520
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion scripts/guess.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def get_random_sample(table, sample_size):


def get_valve_config(valve_table):
result = subprocess.run(["./valve", "dump-config", valve_table], capture_output=True)
result = subprocess.run(
["./valve", "--source", valve_table, "dump-config"], capture_output=True
)
if result.returncode != 0:
error = result.stderr.decode()
output = result.stdout.decode()
Expand Down
4 changes: 2 additions & 2 deletions test/insert_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ then
echo "Warning: Extra arguments: '$*' will be ignored"
fi

VALVE_SOURCE=${table_defs}
VALVE_DATABASE=${db}
export VALVE_SOURCE=${table_defs}
export VALVE_DATABASE=${db}

pwd=$(dirname $(readlink -f $0))
output_dir=$pwd/output
Expand Down
4 changes: 2 additions & 2 deletions test/round_trip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pwd=$(dirname $(readlink -f $0))
output_dir=$pwd/output
valve="./valve"

VALVE_SOURCE=${table_defs}
VALVE_DATABASE=${db}
export VALVE_SOURCE=${table_defs}
export VALVE_DATABASE=${db}

# Use valve to save all of th configured tables:
${valve} save-all --save-dir ${output_dir}
Expand Down

0 comments on commit 9b2e520

Please sign in to comment.