aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.travis/track_status.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.travis/track_status.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/.travis/track_status.sh b/.travis/track_status.sh
index 0e3d2d8..5a473f0 100755
--- a/.travis/track_status.sh
+++ b/.travis/track_status.sh
@@ -7,13 +7,17 @@ track_status() {
log_path="$( mktemp )"
echo "Log file path: $log_path"
- local rm_log_path
- rm_log_path="$( printf -- 'rm -f -- %q' "$log_path" )"
+ local db_path
+ db_path="$( mktemp --dry-run )"
+ echo "DB file path: $db_path"
- trap "$rm_log_path" RETURN
+ local rm_aux_files
+ rm_aux_files="$( printf -- 'rm -f -- %q' "$log_path" "$db_path" )"
+
+ trap "$rm_aux_files" RETURN
echo 'Running track_status.py...'
- python3 -m bin.track_status egor.tensin --log "$log_path" &
+ python3 -m bin.track_status egor.tensin --log "$log_path" --format csv --output "$db_path" &
local pid="$!"
echo "Its PID is $pid"