Skip to content

Commit 01a2181

Browse files
authored
Copying session records during live run (Azure#419)
1 parent 238da30 commit 01a2181

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ci/app/after_test

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
mount_path=$1
44
task=$2
@@ -17,5 +17,9 @@ fi
1717
run_id=$(echo $task | jq -r ".run_id")
1818
task_id=$(echo $task | jq -r ".id")
1919

20-
mkdir -p $mount_path/$run_id/$task_id
21-
cp $recording_path $mount_path/$run_id/$task_id/
20+
target_folder=$(echo $task | jq -r ".settings.classifier.identifier")
21+
22+
target_folder=$(echo $target_folder | rev | cut -d'.' -f2-7 | rev)
23+
24+
mkdir -p $mount_path/$run_id/$target_folder
25+
cp $recording_path $mount_path/$run_id/$target_folder/

0 commit comments

Comments
 (0)