@@ -11,8 +11,8 @@ function symlink_externals
11
11
| xargs -I {} basename {} \
12
12
| grep -v -e " ^local_" \
13
13
| xargs -I {} ln -s \
14
- " $BAZEL_EXTERNAL_DIRECTORY /{}" \
15
- " $output_base /external/{}"
14
+ " $BAZEL_EXTERNAL_DIRECTORY /{}" \
15
+ " $output_base /external/{}"
16
16
}
17
17
18
18
function output_base
@@ -22,11 +22,11 @@ function output_base
22
22
23
23
function common_setup
24
24
{
25
- log=$( mktemp)
26
- test_bazelrc=$( mktemp)
27
- output_base=" $TEST_TMPDIR "
25
+ log=$( mktemp)
26
+ test_bazelrc=$( mktemp)
27
+ output_base=" $TEST_TMPDIR "
28
28
29
- cat > $test_bazelrc << EOF
29
+ cat > $test_bazelrc << EOF
30
30
startup --noblock_for_lock
31
31
startup --max_idle_secs=1
32
32
startup --output_base=$output_base
@@ -38,23 +38,23 @@ build --show_timestamps
38
38
build --experimental_convenience_symlinks=ignore
39
39
EOF
40
40
41
- symlink_externals " $output_base "
41
+ symlink_externals " $output_base "
42
42
}
43
43
44
44
function check_setup
45
45
{
46
- common_setup
46
+ common_setup
47
47
48
- cd " $BUILD_WORKSPACE_DIRECTORY /$1 "
48
+ cd " $BUILD_WORKSPACE_DIRECTORY /$1 "
49
49
}
50
50
51
51
function fix_setup
52
52
{
53
- common_setup
53
+ common_setup
54
54
55
- cp -r " $BUILD_WORKSPACE_DIRECTORY /$1 " temp
55
+ cp -r " $BUILD_WORKSPACE_DIRECTORY /$1 " temp
56
56
57
- echo " common --override_repository=rules_clang_tidy=$BUILD_WORKSPACE_DIRECTORY " >> " $test_bazelrc "
57
+ echo " common --override_repository=rules_clang_tidy=$BUILD_WORKSPACE_DIRECTORY " >> " $test_bazelrc "
58
58
59
- cd temp
59
+ cd temp
60
60
}
0 commit comments