Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 3ca52ee

Browse files
committed
Test fixes
1 parent ab289c3 commit 3ca52ee

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

containers/java-12/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN groupadd --gid $USER_GID $USERNAME \
2121
&& chmod 0440 /etc/sudoers.d/$USERNAME
2222

2323
# Verify git, needed tools installed
24-
RUN yum install -y git net-tools curl procps unzip
24+
RUN yum install -y git net-tools which curl procps unzip
2525

2626
#-------------------Uncomment the following steps to install Maven CLI Tools----------------------------------
2727
# ARG MAVEN_VERSION=3.6.1

containers/java-12/test-project/test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ curl -sSL https://github.com/takari/maven-wrapper/archive/maven-wrapper-0.5.5.ta
4141
mv maven-wrapper-maven-wrapper-0.5.5/mvnw mvnw
4242
mv maven-wrapper-maven-wrapper-0.5.5/.mvn .mvn
4343
rm -rf mv maven-wrapper-maven-wrapper-0.5.5
44+
export MAVEN_OPTS=--enable-preview
4445

4546
# Actual tests
4647
checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$HOME/.vscode-server-insiders/bin"" ]" "[ -d ""$HOME/.vscode-test-server/bin"" ]"
@@ -49,10 +50,10 @@ check "non-root-user" "id vscode"
4950
check "/home/vscode" [ -d "/home/vscode" ]
5051
check "sudo" sudo -u vscode echo "sudo works."
5152
check "git" git --version
52-
check "command-line-tools" which top ip lsb_release curl
53+
check "command-line-tools" which top ifconfig curl
5354
check "java" java -version
5455
check "build-and-test-jar" ./mvnw package
55-
check "test-project" java -jar target/my-app-1.0-SNAPSHOT.jar
56+
check "test-project" java --enable-preview -jar target/my-app-1.0-SNAPSHOT.jar
5657

5758
# Clean up
5859
rm -f mvnw

0 commit comments

Comments
 (0)