Skip to content

Commit e3833bd

Browse files
authored
Merge pull request #119 from brianhlin/cleanup-fixups
Cleanup fixups
2 parents 4ea50dc + a5d0261 commit e3833bd

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

bin/vm-test-cleanup

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ day='[0-3][0-9]'
88
hour='[012][0-9]'
99
minute='[0-5][0-9]'
1010

11-
cd /osgtest/runs
11+
cd /osgtest/runs/
1212
/bin/ls -d run-${year}${month}${day}-${hour}${minute} | head -n -${RUNS_TO_KEEP} | while read rundir; do
1313
rm -rf "$rundir"
1414
done
15+
16+
cd /var/www/html/
17+
/bin/ls -d ${year}${month}${day}-${hour}${minute} | head -n -${RUNS_TO_KEEP} | while read rundir; do
18+
rm -rf "$rundir"
19+
done

rpm/vm-test-cleanup.timer

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[Unit]
22
Description=Cleanup old OSG VM Universe integration test runs periodically
3+
Requires=vm-test-cleanup.service
34

45
[Timer]
56
OnBootSec=10min

rpm/vm-test-runs.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary: OSG VMU test scripts
22
Name: vm-test-runs
3-
Version: 1.0
3+
Version: 1.1
44
Release: 1%{?dist}
55
Source0: %{name}-%{version}.tar.gz
66
License: Apache 2.0
@@ -66,6 +66,9 @@ install -D vmu.css %{buildroot}/%{_localstatedir}/www/html/vmu.css
6666
%{_localstatedir}/www/html/vmu.css
6767

6868
%changelog
69+
* Fri Mar 27 2020 Brian Lin <[email protected]> 1.1-1
70+
- VM test run service cleanup fixes
71+
6972
* Tue Mar 24 2020 Brian Lin <[email protected]> 1.0-1
7073
- Package CSS file
7174
- Systemd unit file fixes

0 commit comments

Comments
 (0)