summaryrefslogtreecommitdiff
path: root/test/638-no-line-number
diff options
context:
space:
mode:
Diffstat (limited to 'test/638-no-line-number')
-rw-r--r--test/638-no-line-number/build.py (renamed from test/638-no-line-number/build)10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/638-no-line-number/build b/test/638-no-line-number/build.py
index 9cd19554bc..364334705b 100644
--- a/test/638-no-line-number/build
+++ b/test/638-no-line-number/build.py
@@ -1,12 +1,11 @@
-#!/bin/bash
#
-# Copyright (C) 2017 The Android Open Source Project
+# Copyright (C) 2022 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
-# http://www.apache.org/licenses/LICENSE-2.0
+# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -14,9 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# Stop if something fails.
-set -e
# Only keep the source name, to make sure we do remove it in the stack trace
# when there is no line number mapping.
-JAVAC_ARGS="$JAVAC_ARGS -g:source" ./default-build "$@"
+def build(ctx):
+ ctx.default_build(javac_args=["-g:source"])