File: after_test

package info (click to toggle)
azure-cli 2.82.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,359,416 kB
  • sloc: python: 1,910,381; sh: 1,343; makefile: 406; cs: 145; javascript: 74; sql: 37; xml: 21
file content (21 lines) | stat: -rwxr-xr-x 474 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

mount_path=$1
task=$2

recording_path=$(echo $task | jq -r ".settings.execution.recording")
if [ "$recording_path" == "null" ]; then
    echo "Skip copying recording file. Code 1."
    exit 0
fi

if [ -z "$recording_path" ]; then
    echo "Skip copying recording file. Code 2."
    exit 0
fi

run_id=$(echo $task | jq -r ".run_id")
task_id=$(echo $task | jq -r ".id")

mkdir -p $mount_path/$run_id
cp $recording_path $mount_path/$run_id/recording_$task_id.yaml