Skip to content

Commit 03d5326

Browse files
committed
Update references to SHA.txt -> SHAs.txt
Hashes are now captured in SHAs.txt instead of SHA.txt. Fix nearby formatting inconsistencies. Signed-off-by: Keith W. Campbell <[email protected]>
1 parent ec65590 commit 03d5326

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tempTestTargetResult
3333
failedtargets.mk
3434
autoGenEnv.mk
3535
buildInfo.mk
36-
SHA.txt
36+
SHAs.txt
3737

3838
.DS_Store
3939

scripts/getSHAs.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ usage ()
2222
echo 'Usage : '
2323
echo ' --test_root_dir: optional'
2424
echo ' --shas_file: optional, the file to write the sha info to. Default is to ../SHAs.txt'
25-
2625
}
2726

2827
parseCommandLineArgs()
@@ -50,8 +49,9 @@ parseCommandLineArgs()
5049
fi
5150
}
5251

53-
timestamp() {
54-
date +"%Y%m%d-%H%M%S"
52+
timestamp()
53+
{
54+
date +"%Y%m%d-%H%M%S"
5555
}
5656

5757
getSHAs()
@@ -70,7 +70,7 @@ getSHAs()
7070
{ echo "================================================"; echo "timestamp: $(timestamp)"; echo "repo dir: $repoDir"; echo "git repo: "; git remote show origin -n | grep "Fetch URL:"; echo "sha:"; git rev-parse HEAD; } 2>&1 | tee -a "$SHAs_FILE"
7171
done
7272
}
73+
7374
parseCommandLineArgs "$@"
7475
getSHAs
7576
cd "$workDIR" || exit
76-

scripts/getTestenvProperties.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,16 @@ OUTPUT_FILE="../testenv.properties"
1717
REPO_NAME=""
1818
REPO_SHA=""
1919

20-
2120
usage ()
2221
{
2322
echo 'This script use git command to get sha in the provided REPO_DIR HEAD and write the info into the OUTPUT_FILE'
2423
echo 'Usage : '
2524
echo ' --repo_dir: local git repo dir'
26-
echo ' --output_file: the file to write the sha info to. Default is to ../SHA.txt'
25+
echo ' --output_file: the file to write the sha info to. Default is to ../SHAs.txt'
2726
echo ' --repo_name: git repo name. It will be used as a parameter name in testenv.properties'
2827
echo ' --repo_sha: git repo sha. If this value is not provided, use git command to get the repo sha. Otherwise, use the provided sha.'
2928
echo ' USE_TESTENV_PROPERTIES: env variable. If set to false, regenerate testenv.properties to capture the repo and sha. Otherwise, do nothing. The existing testenv.properties file will be used.'
3029
echo ' JDK_IMPL: env variable. Only used for openjdk tests. If JDK_IMPL = openj9, append OPENJ9 in REPO_NAME for openjdk repo . i.e., JDK11_OPENJ9. Otherwise, REPO_NAME is unchanged.'
31-
3230
}
3331

3432
parseCommandLineArgs()
@@ -62,7 +60,8 @@ parseCommandLineArgs()
6260
fi
6361
}
6462

65-
getTestenvProperties() {
63+
getTestenvProperties()
64+
{
6665
if [[ "$USE_TESTENV_PROPERTIES" != true ]]; then
6766
echo "Check sha in $REPO_DIR and store the info in $OUTPUT_FILE"
6867
if [ ! -e ${OUTPUT_FILE} ]; then

0 commit comments

Comments
 (0)